[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#225086: dpkg-dev: dpkg-scanpackages incorrectly parses command-line options -a an -u



This patch should fix the problem:

36c36
< while ($ARGV[1] =~ m/^-.*/) {
---
> while ($ARGV[0] =~ m/^-.*/) {
52c52
< $pattern = $arch ? "-name '*_all.$ext' -o -name '*_$arch.$ext'" : "-name '*.$ext'";
---
> $pattern = $arch ? "'(' -name '*_all.$ext' -o -name '*_$arch.$ext' ')'" : "-name '*.$ext'";

The latter fixes another problem that the *_all... files were not
correctly scanned because the "name or name" expression was not grouped.

 Christoph




Reply to: