Bug#223604: dpkg-scanpackages: -a<arch> option causes failure with error message
Package: dpkg-dev
Version: 1.10.18
Severity: normal
File: /usr/bin/dpkg-scanpackages
Running "dpkg-scanpackages -ai386 pool /dev/null" generates the error
message "Binary dir -ai386 not found". This is caused by bad indexing
of @ARGV in the script. When processing the arguments, $ARGV[1] is
used instead of $ARGV[0]; the latter is the first argument passed on
the command line.
Even when that is fixed, it does not find Architecture: all packages
because of find's operator precedence. This can be fixed by adding
parentheses around the -o in the $pattern variable, similar to this:
$pattern = $arch ? "'(' -name '*_all.$ext' -o -name '*_$arch.$ext' ')'"
: "-name '*.$ext'";
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux sanosuke 2.6.0-test11 #1 SMP Sun Nov 30 11:09:17 EST 2003 i686
Locale: LANG=C, LC_CTYPE=C
Versions of packages dpkg-dev depends on:
ii binutils 2.14.90.0.7-3 The GNU assembler, linker and bina
ii cpio 2.5-1.1 GNU cpio -- a program to manage ar
ii make 3.80-4 The GNU version of the "make" util
ii patch 2.5.9-1 Apply a diff file to an original
ii perl [perl5] 5.8.2-2 Larry Wall's Practical Extraction
ii perl-modules 5.8.2-2 Core Perl modules.
-- no debconf information
Reply to: