Package: debian-goodies Version: 0.61 Followup-For: Bug #259864 I was trying to use the "other" apt syntax for specifying an architecture (apt-get install packagename:arch), and it looks like debget gets most of the way there, it just needs some slightly smarter regex fu.
$ debget libtiff4:amd64 (libtiff4:amd64 -> 3.9.6-9) < exits with error code 1, looks like it's because it runs with -e > $ ( set -x ; . /usr/bin/debget libtiff4:amd64 ) + . /usr/bin/debget libtiff4:amd64 ++ LC_ALL=C ++ '[' 1 -eq 0 ']' ++ case $1 in ++ set +e ++ apt-get -q2 --print-uris --reinstall install dpkg ++ '[' 0 -ne 0 ']' ++ ls --color=auto /var/lib/apt/lists/ ++ grep Release ++ set -e ++ for pkgspec in '$*' ++ set +e ++ apt-get -q2 --print-uris --reinstall install libtiff4:amd64 ++ '[' 0 -ne 0 ']' ++ set -e ++ apt-cache show libtiff4:amd64 ++ grep '^Ver' ++ read version +++ echo Version: 3.9.6-9 +++ sed -ne '$s/^.*: \(.*\).*$/\1/p' ++ version=3.9.6-9 ++ echo '(libtiff4:amd64 -> 3.9.6-9)' (libtiff4:amd64 -> 3.9.6-9) ++ read version +++ apt-get -q2 --print-uris --reinstall install libtiff4:amd64 +++ grep -F /libtiff4:amd64_ ++ aptdata= NB: apt-get -q2 --print-uris --reinstall install libtiff4:amd64 prints the correct URI, sort of: $ apt-get -q2 --print-uris --reinstall install libtiff4:amd64 'http://ftp.us.debian.org/debian/pool/main/t/tiff3/libtiff4_3.9.6-9_amd64.deb' libtiff4_3.9.6-9_amd64.deb 201908 MD5Sum:8665f1954dce043eae89908c3055e8a1 'http://ftp.us.debian.org/debian/pool/main/t/tiff3/libtiff4_3.9.6-9_i386.deb' libtiff4_3.9.6-9_i386.deb 200790 MD5Sum:b77f99baa7a74a7f570a3ca1c48d8005 NB2: My system is amd64 natively, I've run dpkg --add-architecture i386 and such to get multiarch going, as you can see from the info below. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.6.8 (SMP w/12 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages debian-goodies depends on: ii curl 7.26.0-1 ii dctrl-tools [grep-dctrl] 2.22.2 ii dialog 1.1-20120215-2 ii perl 5.14.2-15 ii python 2.7.3~rc2-1 ii whiptail 0.52.14-10 Versions of packages debian-goodies recommends: ii lsof 4.86+dfsg-1 Versions of packages debian-goodies suggests: ii popularity-contest 1.56 ii xdg-utils 1.1.0~rc1+git20111210-6 ii zenity 3.4.0-2 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org