Bug#531680: debootstrap: Should not use obsolete dpkg --print-installation-architecture
Package: debootstrap
Version: 1.0.13
Tags: patch
The new dpkg in sid warns now that --print-installation-architecture is obsolete:
fz:~# debootstrap sid chroot http://ftp.de.debian.org/debian
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
This patch solves it.
--- debootstrap 2009-04-24 21:08:35.000000000 +0200
+++ debootstrap 2009-06-03 11:11:23.000000000 +0200
@@ -335,8 +335,8 @@
if [ "$ARCH" != "" ]; then
true
elif [ -x /usr/bin/dpkg ] && \
- /usr/bin/dpkg --print-installation-architecture >/dev/null 2>&1; then
- ARCH=`/usr/bin/dpkg --print-installation-architecture`
+ /usr/bin/dpkg --print-architecture >/dev/null 2>&1; then
+ ARCH=`/usr/bin/dpkg --print-architecture`
elif type udpkg >/dev/null 2>&1 && \
udpkg --print-architecture >/dev/null 2>&1; then
ARCH=`/usr/bin/udpkg --print-architecture`
-- System Information:
Debian Release: squeeze/sid
APT prefers experimental
APT policy: (500, 'experimental'), (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages debootstrap depends on:
ii binutils 2.19.51.20090508-1 The GNU assembler, linker and bina
ii wget 1.11.4-2 retrieves files from the web
Versions of packages debootstrap recommends:
ii gnupg 1.4.9-4 GNU privacy guard - a free PGP rep
debootstrap suggests no packages.
-- no debconf information
Reply to: