Bug#684498: debootstrap uses an obsolete call to dpkg (--print-installation-architecture)

August 10th, 2012 - 10:10 am ET by Jeremiah C. Foster | Report spam
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.

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 ==

To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Similar topics

Replies

#1 Cyril Brulebois
August 10th, 2012 - 10:40 am ET | Report spam

Hello,

and thanks for that.

Jeremiah C. Foster (10/08/2012):
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.



Maybe we could be a little more conservative, i.e.: try

(No time right now to check when that appeared.)

/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`



Mraw,
KiBi.





To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search