Package: apt-file
Version: 2.5.2
Severity: normal

Hi,

I interrupted an apt-file update run (with ^C), and it said:
Download of 
http://ftp.fr.debian.org/debian/dists/wheezy-backports/main/Contents-amd64.gz 
failed
Command died with signal 2
E: Update aborted by signal 2: No such file or directory

That last line seems wrong.  I think this would get rid of it:

diff -Nru apt-file-2.5.2/apt-file apt-file-2.5.2+nmu1/apt-file
--- apt-file-2.5.2/apt-file     2013-05-04 13:13:24.000000000 +0200
+++ apt-file-2.5.2+nmu1/apt-file        2013-12-01 14:40:18.000000000 +0100
@@ -283,7 +283,7 @@
         if (!defined $Conf->{dummy}) {
             system($cmd);
             if (WIFSIGNALED($?)) {
-                error("Update aborted by signal " .WTERMSIG($?));
+                errorx("Update aborted by signal " .WTERMSIG($?));
             }
         }
     }


errno is probably not relevant for this error case, what might make
sense is to print the signal's name instead of its number, but...

Cheers,
Julien

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'stable-updates'), (500, 'unstable'), 
(500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-file depends on:
ii  curl                              7.33.0-1
ii  libapt-pkg-perl                   0.1.29+b1
ii  libconfig-file-perl               1.50-2
ii  liblist-moreutils-perl            0.33-1+b2
ii  libregexp-assemble-perl           0.35-8
ii  perl                              5.18.1-4
ii  perl-modules [libfile-temp-perl]  5.18.1-4

Versions of packages apt-file recommends:
ii  python      2.7.5-5
ii  python-apt  0.9.1

Versions of packages apt-file suggests:
ii  openssh-client  1:6.4p1-1
ii  sudo            1.8.8-2

-- no debconf information

Attachment: signature.asc
Description: Digital signature

Reply via email to