unblock 626937 by 627188
tags 626937 + patch
quit

Hi again,

Francesco Poli wrote:

> It seems that, at /usr/share/apt-listbugs/apt-listbugs/logic.rb:770 ,
> the `chomp!' method is called for a nil object.
> Hence, it seems that pkgnames[index] is nil, for some reason.
>
> I must investigate further, to understand what's going on on your
> system.

How about this?  It would probably be nicer to print the full $pkg
line on error, but I'm lazy.

My vague suspicion is that version->versionString was empty for some
reason, leading to a line like

        - <  **CONFIGURE**

which apt-listbugs would see as three fields instead of four.
---
 apt-listbugs |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/apt-listbugs b/apt-listbugs
index 8b75666..cfab068 100755
--- a/apt-listbugs
+++ b/apt-listbugs
@@ -315,6 +315,9 @@ when "apt"
         # none
       when "**REMOVE**"
         # none
+      when nil
+        $stderr.print _("E: apt Pre-Install-Pkgs is giving me fewer fields 
than expected.\n")
+        exit 1
       else
         pkgnames << filename
       end
-- 
1.7.5.1




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to