From: Frank Lichtenheld Date: Sun, 19 Feb 2006 13:54:29 +0000 (+0000) Subject: dpkg-scanpackages: Fix option parsing of arch option. Also fix a mistake X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c0c9a860ae103469a877733e4e239bf38edd723;p=dpkg dpkg-scanpackages: Fix option parsing of arch option. Also fix a mistake in constructing @find_args. Closes: #353506 --- diff --git a/ChangeLog b/ChangeLog index e116840b..cd5c2e07 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-02-19 Frank Lichtenheld + + * scripts/dpkg-scanpackages.pl: Fix option + parsing of arch option. Also fix a mistake + in constructing @find_args. + 2006-02-18 Frank Lichtenheld * scripts/dpkg-gencontrol.pl: Call parsedep diff --git a/debian/changelog b/debian/changelog index 2f6843fb..a70cf295 100644 --- a/debian/changelog +++ b/debian/changelog @@ -4,6 +4,7 @@ dpkg (1.13.17~) UNRELEASED; urgency=low * Fix handling of -DArchitecure=foo in dpkg-gencontrol. Closes: #251911 * Handle architectures in all dependency fields in debian/control, even those of binary packages. Closes: #252657, #324741, #347819 + * More dpkg-scanpackages fixes (--arch option handling). Closes: #353506 [ Updated dselect Translations ] * hu.po (SZERVÁC Attila). diff --git a/scripts/dpkg-scanpackages.pl b/scripts/dpkg-scanpackages.pl index bbda6c6d..2bc2b5a7 100755 --- a/scripts/dpkg-scanpackages.pl +++ b/scripts/dpkg-scanpackages.pl @@ -43,7 +43,7 @@ my @fieldpri= ('Package', my %field_case; @field_case{map{lc($_)} @fieldpri} = @fieldpri; -use Getopt::Long; +use Getopt::Long qw(:config bundling); my %options = (help => 0, udeb => 0, @@ -71,7 +71,7 @@ my $arch = $options{arch}; my $ext = $options{udeb} ? 'udeb' : 'deb'; my @find_args; if ($options{arch}) { - @find_args = ('(','-name',"*_all.$ext",'-o','-name',"_${arch}.$ext",')',); + @find_args = ('(','-name',"*_all.$ext",'-o','-name',"*_${arch}.$ext",')',); } else { @find_args = ('-name',"*.$ext");