From 5bb57ab91dcc9c82d7d36ff765044882f094dd0d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 21 Feb 2009 01:31:49 -0500 Subject: Fixed logic of adding sources to the build --- rpmbuild-remote.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py index 9b887f3..4c5334c 100644 --- a/rpmbuild-remote.py +++ b/rpmbuild-remote.py @@ -55,13 +55,13 @@ def main(): ext = os.path.splitext(arg)[1] if ext == '.srpm' or ext == '.spec': jobs.append([arg]) - elif ext not in ('.gz', '.tgz', '.bz2', '.patch'): - LOG.warning("Uncommon source extension %s for file %s. " - "Please double check files." % (ext, arg)) - elif len(jobs) == 0: - LOG.error("Source file given without spec file.") - sys.exit(1) else: + if ext not in ('.gz', '.tgz', '.bz2', '.patch'): + LOG.warning("Uncommon source extension %s for file %s. " + "Please double check files." % (ext, arg)) + if len(jobs) == 0: + LOG.error("Source file given without spec file.") + sys.exit(1) jobs[-1].append(arg) if __name__ == '__main__': -- cgit