diff options
-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) |