depcheck.py: abort early when nothing needs checking
authorHelmut Grohne <helmut@subdivi.de>
Tue, 5 Mar 2019 18:58:07 +0000 (19:58 +0100)
committerHelmut Grohne <helmut@subdivi.de>
Tue, 5 Mar 2019 18:58:07 +0000 (19:58 +0100)
depcheck.py

index 884f2ad..0fbc9c8 100755 (executable)
@@ -452,6 +452,8 @@ def main():
                        WHERE giveback = 1 OR releasetime < ?;""",
                 (mirror.releasetime,))
     archs = set(row[0] for row in cur.fetchall())
+    if not archs:
+        return
     print("checking %s" % " ".join(sorted(archs)))
     now = datetime.datetime.utcnow().replace(microsecond=0)
     mapper = multiprocessing.Pool().imap_unordered if args.parallel else map