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

Attachment: signature.asc
Description: Digital signature

Reply via email to