summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFrank Lichtenheld <djpig@debian.org>2006-02-17 14:35:13 +0000
committerFrank Lichtenheld <djpig@debian.org>2006-02-17 14:35:13 +0000
commite83d616afc5b2b1b47b716a73058c34279fb9894 (patch)
tree1cd037d183a8741adc5592542ff5c87c03027068 /scripts
parent92c0bb7afd728a44aa09b4e25c519d0cfe190713 (diff)
downloaddpkg-e83d616afc5b2b1b47b716a73058c34279fb9894.tar.gz
Fix override handling in dpkg-scanpackages which was broken in
1.13.14 and .15. Closes: #353305
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dpkg-scanpackages.pl21
1 files changed, 11 insertions, 10 deletions
diff --git a/scripts/dpkg-scanpackages.pl b/scripts/dpkg-scanpackages.pl
index b7031f445..bbda6c6d4 100755
--- a/scripts/dpkg-scanpackages.pl
+++ b/scripts/dpkg-scanpackages.pl
@@ -189,10 +189,11 @@ my $override_fh = new IO::File $override,'r'
while (<$override_fh>) {
s/\#.*//;
s/\s+$//;
+ next unless $_;
my ($p,$priority,$section,$maintainer)= split(/\s+/,$_,4);
next unless defined($packages{$p});
for my $package (@{$packages{$p}}) {
- if (defined $maintainer and length($maintainer)) {
+ if ($maintainer) {
if ($maintainer =~ m/(.+?)\s*=\>\s*(.+)/) {
my $oldmaint= $1;
my $newmaint= $2;
@@ -203,15 +204,15 @@ while (<$override_fh>) {
} else {
$$package{Maintainer}= $newmaint;
}
- }
- } elsif ($$package{Maintainer} eq $maintainer) {
- push(@samemaint," $p ($maintainer)\n");
- } else {
- print(STDERR " * Unconditional maintainer override for $p *\n") || die $!;
- $$package{Maintainer}= $maintainer;
- }
- $packages{$p}{Priority}= $priority;
- $packages{$p}{Section}= $section;
+ } elsif ($$package{Maintainer} eq $maintainer) {
+ push(@samemaint," $p ($maintainer)\n");
+ } else {
+ print(STDERR " * Unconditional maintainer override for $p *\n") || die $!;
+ $$package{Maintainer}= $maintainer;
+ }
+ }
+ $$package{Priority}= $priority;
+ $$package{Section}= $section;
}
$overridden{$p} = 1;
}