table buildreqeusts should have an explicit id
[~helmut/crossqa.git] / depcheck.py
index 884f2ad..743a09d 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/python3
+# SPDX-License-Identifier: GPL-2.0+
 
 import argparse
 import collections
@@ -452,6 +453,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