Rebuild with fixed mod_auth_gssapi spec
[moonshot.git] / rpm-builder
index e7a9d91..75a3399 100755 (executable)
@@ -64,6 +64,7 @@ def find_type(name):
 #
 def trim_target(t):
     match = re.match('([^/-]*/)?([^-/]+)', t)
+    if match is None: return ""
     return match.group(2)
 
     
@@ -138,7 +139,8 @@ for t in os.listdir(dist_dir):
     if target_type == ".spec":
         package_order[trimmed] = t
     else:
-        if trimmed not in package_order: package_order[trimmed] = t
+        # Replace None but nothing else
+        if not package_order.get(trimmed): package_order[trimmed] = t