diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-21 01:31:49 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-21 01:31:49 -0500 |
commit | 5bb57ab91dcc9c82d7d36ff765044882f094dd0d (patch) | |
tree | 4aaebc52fd364a9d0212d0f14c90c0d549d6e355 | |
parent | a221cc3989c4dcb6e75ad61aa1f4b9b385610fec (diff) | |
download | rpmbuild-remote-5bb57ab91dcc9c82d7d36ff765044882f094dd0d.tar.gz rpmbuild-remote-5bb57ab91dcc9c82d7d36ff765044882f094dd0d.tar.xz rpmbuild-remote-5bb57ab91dcc9c82d7d36ff765044882f094dd0d.zip |
Fixed logic of adding sources to the build
-rw-r--r-- | rpmbuild-remote.py | 12 |
1 files 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__': |