Package: apt-listbugs Version: 0.0.75 Severity: normal Tags: patch apt-listbugs uses the obsolete tail invocation of "tail -1". The coreutils NEWS.Debian.gz and tail info page describe that it should be changed to "tail -n 1".
This showed up when I used inotail as /usr/bin/tail. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-686 (SMP w/2 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages apt-listbugs depends on: ii apt 0.6.46.4-0.1 Advanced front-end for dpkg ii libdpkg-ruby1.8 0.3.2 modules/classes for dpkg on ruby 1 ii libhttp-access2-ruby1.8 2.0.6-3 HTTP accessing library for ruby ii libintl-gettext-ruby1.8 0.11-9 Gettext wrapper for Ruby 1.8 ii libruby1.8 [libzlib-ruby1.8 1.8.6-1 Libraries necessary to run Ruby 1. ii libxml-parser-ruby1.8 0.6.8-2 Interface of expat for the scripti ii ruby 1.8.2-1 An interpreter of object-oriented apt-listbugs recommends no packages. -- no debconf information
diff -ru apt-listbugs-0.0.75/aptcleanup apt-listbugs-0.0.75-new/aptcleanup --- apt-listbugs-0.0.75/aptcleanup 2005-06-02 13:25:09.000000000 +1000 +++ apt-listbugs-0.0.75-new/aptcleanup 2007-05-24 10:12:37.000000000 +1000 @@ -10,7 +10,7 @@ pinnedpkgs = buf.split(' ') $stderr.puts "Pinned: #{pinnedpkgs.sort.join(' ')}" if $DEBUG bugpkgs = [] -open("|/usr/sbin/apt-listbugs -q list #{buf} | tail -1 ") { |io| +open("|/usr/sbin/apt-listbugs -q list #{buf} | tail -n 1 ") { |io| buf = io.read.delete(' ').gsub(/\([^\)]+\)/,'').chomp bugpkgs = buf.split(',') }