Package: cupt
Version: 1.3.1
Severity: minor
Tags: patch

Hello,

I had some exotic packages installed on my system with no definition for 
installed_size.
Cupt fails ungracefully:
Use of uninitialized value $bytes in numeric lt (<) at 
/usr/share/perl5/Cupt/Core.pm line 311, <$fh> line 119.
 at /usr/share/perl5/Cupt/Core.pm line 311
        Cupt::Core::human_readable_size_string(undef) called at /usr/bin/cupt 
line 527
        main::show_binary_package_versions() called at /usr/bin/cupt line 143
        eval {...} called at /usr/bin/cupt line 142
        main::main() called at /usr/bin/cupt line 157
 at /usr/share/perl5/Cupt/Core.pm line 110
        Cupt::Core::mycatch() called at /usr/bin/cupt line 145
        main::main() called at /usr/bin/cupt line 157


The fix is really simple: add a ...if defined $version->installed_size at end 
of line 527 (like what
is done on line 526 for size).

Minor bug, since normal packages do have the installed_size field.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cupt depends on:
ii  libcupt-perl                  1.3.1      alternative front-end for dpkg -- 
ii  perl                          5.10.1-8   Larry Wall's Practical Extraction 
ii  sensible-utils                0.0.2      Utilities for sensible alternative

cupt recommends no packages.

Versions of packages cupt suggests:
pn  libterm-readline-gnu-perl     <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to