From: Michael Tremer Date: Sun, 4 Dec 2011 01:06:31 +0000 (+0100) Subject: Keep last bit of build tuple on ARM. X-Git-Tag: 0.9.18~4^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a15ca768b73f36603eb1e9b9795491d6fa37c22d;p=pakfire.git Keep last bit of build tuple on ARM. --- diff --git a/python/pakfire/distro.py b/python/pakfire/distro.py index 96eb6194f..df785c487 100644 --- a/python/pakfire/distro.py +++ b/python/pakfire/distro.py @@ -121,11 +121,20 @@ class Distribution(object): def machine(self): vendor = self.vendor.split()[0] - return "%s-%s-linux-gnu" % (self.arch, vendor.lower()) + s = "%s-%s-linux-gnu" % (self.arch, vendor.lower()) + + if self.arch.startswith("arm"): + s += "eabi" + + return s @property def buildtarget(self): - return self.machine.replace("-gnu", "") + # Cut off last segment of machine. + if not self.arch.startswith("arm"): + return self.machine.replace("-gnu", "") + + return self.machine @property def source_dl(self):