diff options
author | Helmut Grohne <helmut@subdivi.de> | 2019-03-05 19:58:07 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2019-03-05 19:58:07 +0100 |
commit | b15898cf32679ebc8d9a63e8d631847bcc5bf5e0 (patch) | |
tree | 73847b337a676503a25a0e08f43b1fc288e8753a /depcheck.py | |
parent | bfec8a73d51a987eda4e6612b1ab6f74b2633a46 (diff) | |
download | crossqa-b15898cf32679ebc8d9a63e8d631847bcc5bf5e0.tar.gz |
depcheck.py: abort early when nothing needs checking
Diffstat (limited to 'depcheck.py')
-rwxr-xr-x | depcheck.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/depcheck.py b/depcheck.py index 884f2ad..0fbc9c8 100755 --- a/depcheck.py +++ b/depcheck.py @@ -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 |