Package: apt-zip
Version: 0.18
Severity: grave
Tags: patch jessie sid
Justification: Updating package lists silently broken

Dear Maintainer,

"apt-zip-list --aptgetaction=update" does nothing on Jessie:

# apt-zip-list --medium=/tmp/apt-zip-test/ --skip-mount --aptgetaction=update 
-o tar --no-md5
The download size is unknown in 0 files.
#

Reason is that "apt-get -qq --print-uris update" has no output at all
anymore:

# apt-get -qq --print-uris update
#

The expected output comes back if I remove one "q":

# apt-get -q --print-uris update
'http://debian.ethz.ch/debian/dists/jessie/main/source/Sources.bz2' 
debian.ethz.ch_debian_dists_jessie_main_source_Sources 0 :
'http://debian.ethz.ch/debian/dists/jessie/main/binary-amd64/Packages.bz2' 
debian.ethz.ch_debian_dists_jessie_main_binary-amd64_Packages 0 :
'http://debian.ethz.ch/debian/dists/jessie/main/i18n/Translation-en.bz2' 
debian.ethz.ch_debian_dists_jessie_main_i18n_Translation-en 0 :
'http://debian.ethz.ch/debian/dists/jessie/InRelease' 
debian.ethz.ch_debian_dists_jessie_InRelease 0 
[...]
#

The following patch fixes the issue:

diff --git a/apt-zip-list b/apt-zip-list
index f5d7acb..49bb69e 100755
--- a/apt-zip-list
+++ b/apt-zip-list
@@ -33,9 +33,15 @@ APTGETEXTRAOPTS="${APTGETEXTRAOPTS} -o Debug::NoLocking=true"
 TMP=$(tempfile -p aptzip)
 TEMP=$(tempfile -p aptzip)
 
+if [ "$APTGETACTION" = update ]; then
+    APTGETQUIETLEVEL=-q
+else
+    APTGETQUIETLEVEL=-qq
+fi
+
 [ -n "$PACKAGES" ] && apt-get ${APTGETEXTRAOPTS} -qq --print-uris install 
$PACKAGES > "$TMP"
-[ -n "$APTGETACTION" ] && apt-get ${APTGETEXTRAOPTS} -qq --print-uris 
${APTGETACTION} >> "$TMP"
+[ -n "$APTGETACTION" ] && apt-get ${APTGETEXTRAOPTS} ${APTGETQUIETLEVEL} 
--print-uris ${APTGETACTION} >> "$TMP"
 grep $GREP < "$TMP" | tr -d "'" | sed 's/MD5Sum://' | sort -u > "$TEMP"
 if [ $? != 0 ]
 then

(The above patch can be applied after the patch from #638840 has been
applied.)

-- System Information:
Debian Release: 8.0
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages apt-zip depends on:
ii  apt  1.0.9.7

apt-zip recommends no packages.

apt-zip suggests no packages.

-- no debconf information


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

Reply via email to