From: Michael Tremer Date: Fri, 9 Dec 2011 19:05:42 +0000 (+0100) Subject: ARM: Fix buildtarget (were only -gnu needs to be removed). X-Git-Tag: 0.9.19~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=adf9f9686132bfa967fd6c8e71e8033eb6cf8dc1;p=pakfire.git ARM: Fix buildtarget (were only -gnu needs to be removed). --- diff --git a/python/pakfire/distro.py b/python/pakfire/distro.py index 217f5a8dd..446ee3b59 100644 --- a/python/pakfire/distro.py +++ b/python/pakfire/distro.py @@ -57,7 +57,7 @@ class Distribution(object): log.debug("Distribution configuration:") attrs = ("name", "version", "release", "sname", "dist", "vendor", - "arch", "machine", "source_dl",) + "arch", "machine", "buildtarget", "source_dl",) for attr in attrs: log.debug(" %s : %s" % (attr, getattr(self, attr))) @@ -133,10 +133,7 @@ class Distribution(object): @property def buildtarget(self): # Cut off last segment of machine. - if not self.arch.startswith("arm"): - return self.machine.replace("-gnu", "") - - return self.machine + return self.machine.replace("-gnu", "") @property def source_dl(self):