Bug#684498: debootstrap uses an obsolete call to dpkg (--print-installation-architecture)
Package: debootstrap
Version: 1.0.10
Severity: normal
Tags: patch
Dear Maintainer,
I ran debootstrap and received this error:
dpkg: warning: obsolete option '--print-installation-architecture', please use '--print-architecture' instead.
I've attached a patch that fixes this rather minor issue.
Thank you for all your work.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-linode23 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
=== Patch ===
--- /usr/sbin/debootstrap 2008-07-02 17:44:35.000000000 +0200
+++ my-debootstrap 2012-08-10 15:12:03.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`
=== End patch ===
Reply to: