Skip to content

Commit

Permalink
Item13364: Don't process NODEPS or SIMULATE as repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
gac410 committed Apr 20, 2015
1 parent 6a8b851 commit 9ea8d00
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions core/lib/Foswiki/Configure/Wizards/InstallExtensions.pm
Expand Up @@ -98,7 +98,7 @@ sub depreport {

while ( my ( $module, $repo ) = each %$args ) {

# NODEPS and SIMULATE are not used for depreport
# NODEPS and SIMULATE are not repositories, skip those arguments
next if $module eq 'NODEPS';
next if $module eq 'SIMULATE';

Expand Down Expand Up @@ -135,6 +135,11 @@ sub add {

my $args = $this->param('args');
while ( my ( $module, $repo ) = each %$args ) {

# NODEPS and SIMULATE are not a repositories, skip these arguments
next if $module eq 'NODEPS';
next if $module eq 'SIMULATE';

my $pkg = $this->_getPackage( $reporter, $module, $repo, $seen );
next unless $pkg;

Expand Down Expand Up @@ -164,6 +169,11 @@ sub remove {

my $args = $this->param('args');
while ( my ( $module, $repo ) = each %$args ) {

# NODEPS and SIMULATE are not a repositories, skip these arguments
next if $module eq 'NODEPS';
next if $module eq 'SIMULATE';

my $pkg = $this->_getPackage( $reporter, $module, $repo );
next unless $pkg;

Expand All @@ -179,7 +189,7 @@ sub remove {
__END__
Foswiki - The Free and Open Source Wiki, http://foswiki.org/
Copyright (C) 2008-2014 Foswiki Contributors. Foswiki Contributors
Copyright (C) 2008-2015 Foswiki Contributors. Foswiki Contributors
are listed in the AUTHORS file in the root of this distribution.
NOTE: Please extend that file, not this notice.
Expand Down

0 comments on commit 9ea8d00

Please sign in to comment.