Comment 11 for bug 193140

Revision history for this message
FabioS (aksaf) wrote :

I don't know whether it could be useful, but in order to have the metapackage created with right arch I modified the file /usr/lib/python2.7/dist-packages/APTonCD/core/metapackage.py as installed from
/usr/lib/python2.7/dist-packages/APTonCD/core/metapackage.py
or $srcdir/APTonCD/core/metapackage.py from aptoncd_0.1.98+bzr117.orig.tar.gz
(they are alike).
I'm on Ubuntu 11.04 x86_64.
Here's an excerpt from attachment (actually I simply added/edited a pair of lines):

@@ -17,6 +17,7 @@
 [..]
 import gobject
+from APTonCD.core.utils import SystemInfo

 class MetaPackage(object):
  """
@@ -24,13 +25,14 @@
  """
[..] def __init__(self, filename=""):
+ util = SystemInfo()
   self.fileName = filename
[..]
   self.mtPriority = 'optional'
- self.mtArch = 'i386'
+ self.mtArch = util.architecture
   self.mtMaintainer = 'APTonCD Auto-Packager <http://aptoncd.sourceforge.net>'

It works (at list as far as I tested)