summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-15 14:50:23 -0400
committerColin Walters <walters@verbum.org>2010-09-15 14:50:23 -0400
commit81c488b4af18d8441ed41079057997f14e69b73f (patch)
tree5cedeccaca61accf9340e9c57b1f63021321b08c
parenta0bbc6bd0bd7fef4d7aa1b622199f22f9c57c2a2 (diff)
downloadhomegit-MOVED-TO-GNOME-81c488b4af18d8441ed41079057997f14e69b73f.zip
homegit-MOVED-TO-GNOME-81c488b4af18d8441ed41079057997f14e69b73f.tar.gz
homegit-MOVED-TO-GNOME-81c488b4af18d8441ed41079057997f14e69b73f.tar.xz
mock-many-srpms: Fix scanning for previous builds
-rwxr-xr-xbin/mock-many-srpms6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/mock-many-srpms b/bin/mock-many-srpms
index 7e27af0..095c018 100755
--- a/bin/mock-many-srpms
+++ b/bin/mock-many-srpms
@@ -28,7 +28,7 @@ def list_source_names_in_dir(dirpath):
for f in files:
if not f.endswith('.src.rpm'):
continue
- name = f.rsplit('-', 1)[1]
+ name = f.rsplit('-', 1)[0]
sources.append(name)
return sources
@@ -127,13 +127,13 @@ def main():
previous_successful_builds = list_source_names_in_dir(resultdir)
else:
previous_successful_builds = []
-
+
succeeded = []
skipped = []
failed = []
for srpm in args:
srpm_name = os.path.basename(srpm)
- src_name = srpm_name.rsplit('-', 1)[1]
+ src_name = srpm_name.rsplit('-', 1)[0]
if src_name in previous_successful_builds:
print "Skipping %r due to previous successful build" % (srpm_name, )