bodhi/masher.py | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit ef328249fc976a0ec85fb0b911466c75aa58be1e
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Mar 8 15:03:40 2011 -0500
Fix a bug in our multiarch mash support
diff --git a/bodhi/masher.py b/bodhi/masher.py
index 4584319..f1f6c0d 100644
--- a/bodhi/masher.py
+++ b/bodhi/masher.py
@@ -533,6 +533,11 @@ class MashTask(Thread):
if one not in arches and other not in arches:
self.error_log("Cannot find arch %s OR %s in %s" %
(one, other, newrepo))
raise MashTaskException
+ else:
+ if one in arches:
+ arch = one
+ else:
+ arch = other
elif arch not in arches:
self.error_log("Cannot find arch %s in %s" % (arch,
newrepo))
raise MashTaskException