From adf9f9686132bfa967fd6c8e71e8033eb6cf8dc1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 9 Dec 2011 20:05:42 +0100 Subject: [PATCH] ARM: Fix buildtarget (were only -gnu needs to be removed). --- python/pakfire/distro.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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): -- 2.39.5