Bug#455732: Emits no error when options are given, but no files to work on
Package: lintian
Version: 1.23.41
Severity: minor
Hi,
I encoundeted this by misusing --color:
Transcript:
$ lintian --color libend-perl_1.2-6_i386.changes
$
$ lintian libend-perl_1.2-6_i386.changes
E: libend-perl_1.2-6_i386.changes: bad-distribution-in-changes-file
UNRELEASED
W: libend-perl source: changelog-should-mention-nmu
W: libend-perl source: source-nmu-has-incorrect-version-number 1.2-6
"--color auto" works as expected.
Perhaps this is because the .changes given is interpreted as a value
for --color? Still, lintian usually complains if no files (and no
opions) are given...
Looking at the source it seems to me that the check for $#ARGV being -1
around line 106 should be moved somewhere before processing package/file
arguments (line 582) or right after parsing options (line 299).
Best regards,
dam
-- System Information:
Debian Release: lenny/sid
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.23-1-686 (SMP w/2 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lintian depends on:
ii binutils 2.18.1~cvs20071027-1 The GNU assembler, linker and bina
ii diffstat 1.45-2 produces graph of changes introduc
ii dpkg-dev 1.14.12 package building tools for Debian
ii file 4.21-3 Determines file type using "magic"
ii gettext 0.17-2 GNU Internationalization utilities
ii intltool-debian 0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii libparse-debianchan 1.1.1-1 parse Debian changelogs and output
ii liburi-perl 1.35.dfsg.1-1 Manipulates and accesses URI strin
ii man-db 2.5.0-4 on-line manual pager
ii perl [libdigest-md5 5.8.8-12 Larry Wall's Practical Extraction
lintian recommends no packages.
-- no debconf information
Reply to: