Skip to content

Commit

Permalink
scripts/scandeps.pl: avoid duplicate build depends
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 17, 2016
1 parent 25d0351 commit 522013b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/scandeps.pl
Expand Up @@ -64,11 +64,13 @@
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="";
Expand Down

0 comments on commit 522013b

Please sign in to comment.