diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-09-08 20:07:55 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-09-08 20:07:55 -0400 |
commit | 2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee (patch) | |
tree | 87df76bc7837baa5210ed56569b7761145df48b6 | |
parent | f486f6fba428c291563cfac31e36a8e452b53022 (diff) | |
download | rpmbuild-remote-2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee.tar.gz rpmbuild-remote-2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee.tar.xz rpmbuild-remote-2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee.zip |
Check if the last argument was a spec file
-rw-r--r-- | rpmbuild-remote.py | 2 |
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) |