summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpmbuild-remote.py12
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__':