From 2b34a5f18b5479ee053ab0bcf0b8f089a4cf43ee Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 8 Sep 2009 20:07:55 -0400 Subject: Check if the last argument was a spec file --- rpmbuild-remote.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpmbuild-remote.py') 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) -- cgit