mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
scripts/scandeps.pl: avoid duplicate build depends
This commit is contained in:
parent
25d0351d57
commit
522013b80e
@ -64,11 +64,13 @@ for my $dist (@dists) {
|
||||
system("git checkout debian/control" )==0 or die "git checkout failed: $!";
|
||||
|
||||
my @deps;
|
||||
my %deps;
|
||||
foreach my $p (split /,/, $deps) {
|
||||
$p =~ s/^\s+//;
|
||||
$p =~ s/\s+.*$//;
|
||||
next if $p =~ /^(debhelper|subversion|python-central)$/;
|
||||
push @deps, $p;
|
||||
push @deps, $p if not exists $deps{$p};
|
||||
$deps{$p} = 1;
|
||||
}
|
||||
|
||||
my $dep="";
|
||||
|
Loading…
x
Reference in New Issue
Block a user