summaryrefslogtreecommitdiffstats
path: root/rpmbuild-remote.py
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-08 20:07:55 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-08 20:07:55 -0400
commit2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee (patch)
tree87df76bc7837baa5210ed56569b7761145df48b6 /rpmbuild-remote.py
parentf486f6fba428c291563cfac31e36a8e452b53022 (diff)
downloadrpmbuild-remote-2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee.zip
rpmbuild-remote-2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee.tar.gz
rpmbuild-remote-2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee.tar.xz
Check if the last argument was a spec file
Diffstat (limited to 'rpmbuild-remote.py')
-rw-r--r--rpmbuild-remote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py
index ce1a003..43c9f6c 100644
--- a/rpmbuild-remote.py
+++ b/rpmbuild-remote.py
@@ -70,7 +70,7 @@ def main():
if ext not in EXTENSIONS:
LOG.warning("Uncommon source extension %s for file %s. "
"Please double check files." % (ext, arg))
- if len(jobs) == 0:
+ if not len(jobs) or not type(jobs[-1]) == type([]):
LOG.error("Source file given without spec file.")
sys.exit(1)
jobs[-1].append(arg)