Skip to content

Commit 522013b

Browse files
committed
scripts/scandeps.pl: avoid duplicate build depends
1 parent 25d0351 commit 522013b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/scandeps.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,13 @@
6464
system("git checkout debian/control" )==0 or die "git checkout failed: $!";
6565

6666
my @deps;
67+
my %deps;
6768
foreach my $p (split /,/, $deps) {
6869
$p =~ s/^\s+//;
6970
$p =~ s/\s+.*$//;
7071
next if $p =~ /^(debhelper|subversion|python-central)$/;
71-
push @deps, $p;
72+
push @deps, $p if not exists $deps{$p};
73+
$deps{$p} = 1;
7274
}
7375

7476
my $dep="";

0 commit comments

Comments
 (0)