Don't update target for anything other than the first file per package.
authorSam Hartman <hartmans@debian.org>
Tue, 20 May 2014 01:28:32 +0000 (21:28 -0400)
committerSam Hartman <hartmans@debian.org>
Mon, 23 Jun 2014 15:03:54 +0000 (11:03 -0400)
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