Skip to content
Permalink
Browse files

creatensis.pl: support for excluding packages (including their depend…

…encies)
  • Loading branch information
jef-n committed Aug 20, 2015
1 parent d7c653c commit b578fc14f83d15a41bb05ca0cbf031b371f11dc6
Showing with 17 additions and 6 deletions.
  1. +17 −6 ms-windows/osgeo4w/creatensis.pl
@@ -102,12 +102,22 @@
my %pkgs;
sub getDeps {
my ($pkg) = @_;
return if exists $pkgs{$pkg};
print " Including package $pkg\n" if $verbose;
$pkgs{$pkg} = 1;
my $pkg = shift;
my $deponly = $pkg =~ /-$/;
$pkg =~ s/-$//;
unless($deponly) {
return if exists $pkgs{$pkg};
print " Including package $pkg\n" if $verbose;
$pkgs{$pkg} = 1;
} elsif( exists $pkgs{$pkg} ) {
print " Excluding package $pkg\n" if $verbose;
delete $pkgs{$pkg};
return;
} else {
print " Including dependencies of package $pkg\n" if $verbose;
}
foreach my $p ( @{ $dep{$pkg} } ) {
getDeps($p);
@@ -461,4 +471,5 @@ =head1 SYNOPSIS
If no packages are given 'qgis-full' and it's dependencies will be retrieved
and packaged.
Packages with a appended '-' are excluded, but their dependencies are included.
=cut

0 comments on commit b578fc1

Please sign in to comment.
You can’t perform that action at this time.