File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 102
102
my %pkgs ;
103
103
104
104
sub getDeps {
105
- my ($pkg ) = @_ ;
106
-
107
- return if exists $pkgs {$pkg };
108
-
109
- print " Including package $pkg \n " if $verbose ;
110
- $pkgs {$pkg } = 1;
105
+ my $pkg = shift;
106
+
107
+ my $deponly = $pkg =~ /-$/ ;
108
+ $pkg =~ s/-$/ /;
109
+
110
+ unless($deponly ) {
111
+ return if exists $pkgs {$pkg };
112
+ print " Including package $pkg \n " if $verbose ;
113
+ $pkgs {$pkg } = 1;
114
+ } elsif( exists $pkgs {$pkg } ) {
115
+ print " Excluding package $pkg \n " if $verbose ;
116
+ delete $pkgs {$pkg };
117
+ return;
118
+ } else {
119
+ print " Including dependencies of package $pkg \n " if $verbose ;
120
+ }
111
121
112
122
foreach my $p ( @{ $dep {$pkg } } ) {
113
123
getDeps($p );
@@ -461,4 +471,5 @@ =head1 SYNOPSIS
461
471
If no packages are given 'qgis-full' and it's dependencies will be retrieved
462
472
and packaged.
463
473
474
+ Packages with a appended '-' are excluded, but their dependencies are included.
464
475
=cut
You can’t perform that action at this time.
0 commit comments