[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#47112: update method for dselect does not refresh package list on error



Package: apt
Version: 0.3.13
Severity: normal

/usr/lib/dpkg/methods/apt/update bangs out with an error code if apt-get
update cannot fetch one of the package lists. Given that apt-get already
does error-recovery, and that only some of the package lists may have failed
to download (and old, supposedly 'known-good' copies used in their place),
update should run the "Merging Available information" portion regardless.

I was tempted to flag this bug as grave, since security updates will never
be applied by dselect to a system where any of the entries in sources.apt is
broken.


Temporary patch:

file: /usr/lib/dpkg/methods/apt/update

replace the line:
$APTGET $OPTS update

with the lines:
set +e
$APTGET $OPTS update
set -e

-- System Information
Debian Release: potato
Architecture: i386
Kernel: Linux godzillah 2.2.12 #1 Sat Aug 28 19:24:23 BRT 1999 i586

Versions of packages apt depends on:
ii  libc6                     2.1.2-5        GNU C Library: Shared libraries an
ii  libstdc++2.10             1:2.95.2-0pre2 The GNU stdc++ library            


Reply to: