[ubuntu-dev] Bug#594424: brittle implementation of ubuntutools.misc.host_architecture()
Jakub Wilk
jwilk at debian.org
Wed Aug 25 21:35:41 UTC 2010
Package: ubuntu-dev-tools
Version: 0.101
Severity: normal
host_architecture() uses os.uname() to determine host architecture.
However, uname() returns a "machine hardware name", which can be
something quite different, e.g.:
$ dpkg --print-architecture
hppa
$ python -c 'from ubuntutools.misc import host_architecture; print host_architecture()'
parisc64
Most importantly, host_architecture() returns the wrong thing for an
i386 system with amd64 kernel:
$ dpkg --print-architecture
i386
$ python -c 'from ubuntutools.misc import host_architecture; print host_architecture()'
amd64
--
Jakub Wilk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/ubuntu-dev-team/attachments/20100825/9fad6579/attachment.pgp>
More information about the ubuntu-dev-team
mailing list