Don't update target for anything other than the first file per package.
[moonshot.git] / rpm-builder
index 5492784..75a3399 100755 (executable)
@@ -139,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