else:
return 'any', 'any', 'any'
+ if len(parts) == 2 and parts[0] == 'linux':
+ arch = parts[1]
+
triplet = _triplettable()[1].get(arch, None)
if triplet is None:
return None
class MatchArchitecture(DakTestCase):
def testEqual(self):
self.assert_(match_architecture('amd64', 'amd64'))
+ self.assert_(match_architecture('linux-amd64', 'linux-amd64'))
+ self.assert_(match_architecture('linux-amd64', 'amd64'))
+ self.assert_(match_architecture('amd64', 'linux-amd64'))
self.assert_(not match_architecture('amd64', 'i386'))
self.assert_(match_architecture('kfreebsd-amd64', 'kfreebsd-amd64'))
self.assert_(not match_architecture('kfreebsd-amd64', 'amd64'))