Package: apt-cacher Version: 1.7.6 Severity: normal
# /usr/share/apt-cacher/apt-cacher-precache.pl --help USAGE: /usr/share/apt-cacher/apt-cacher-precache.pl [ options ] Options: -d, --dist-filter=RE Perl regular experession, applied to the URL of Packages files to select only special versions. Example: 'sid|unstable|experimental' (default: 'testing|etch') -q, --quiet suppress verbose output -l, --list-dir=DIR also use pure/compressed files from the specified dir (eg. /var/log/apt-cacher) to get the package names from. Words before | are ignored (in apt-cacher logs). To create a such list from clients, see below. -p, --by-priority=RE Perl regular expression for priorities to be looked for when selecting packages. Implies threating all packages with this priority as installation candidates. (default: scanning the cache for candidates without looking at priority) NOTE: the options may change in the future. You can feed existing package lists or old apt-cacher logs into the selection algorithm by using the -l option above. If the version is omited (eg. for lists created with "dpkg --get-selections" then the packages may be redownloaded). To avoid this, use following one-liner to fake a list with version infos: dpkg -l | perl -ne 'if(/^(i.|.i)\s+(\S+)\s+(\S+)/) { print "$2_$3_i386.deb\n$2_$3_all.deb\n"}' If you take a look at this "one-liner" it artificially implants "i386" and "all" into package names. If run this "one-liner" on an AMD64 system, it generates the incorrect package names for the system. In addition to the above, it generates incorrect package names for all packages that were installed as multi-arch. (Ie: It fails to process all packages that have a :i386 or :AMD64 in them. Example: root@BabyCats:/mnt/Backups/pkglist# dpkg -l | grep yelp ii libyelp0 3.4.2-1+b1 amd64 Library for the GNOME help browser ii yelp 3.4.2-1+b1 amd64 Help browser for GNOME ii yelp-xsl 3.4.2-1 all XSL stylesheets for the yelp help browser However, the "one-liner" in the pre-cacher help generated these files: -rw-r--r-- 1 root root 0 Dec 23 01:52 yelp_3.4.2-1+b1_i386.deb -rw-r--r-- 1 root root 0 Dec 23 01:52 yelp-xsl_3.4.2-1_all.deb -rw-r--r-- 1 root root 0 Dec 23 01:52 yelp-xsl_3.4.2-1_i386.deb Which are incorrect for the platform. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 3.2.0-4-686-pae (SMP w/1 CPU core) 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-cacher depends on: ii debconf [debconf-2.0] 1.5.46 ii dpkg 1.16.9 ii ed 1.6-2 pn libfilesys-df-perl <none> pn libfreezethaw-perl <none> pn libio-interface-perl <none> ii libnetaddr-ip-perl 4.062+dfsg-1 pn libsys-syscall-perl <none> pn libwww-curl-perl <none> ii libwww-perl 6.04-1 ii lsb-base 4.1+Debian8 ii perl 5.14.2-16 ii update-inetd 4.43 Versions of packages apt-cacher recommends: pn libberkeleydb-perl <none> Versions of packages apt-cacher suggests: ii libio-socket-inet6-perl 2.69-2 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org