projects
/
~helmut
/
crossqa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfec8a7
)
depcheck.py: abort early when nothing needs checking
author
Helmut Grohne
<helmut@subdivi.de>
Tue, 5 Mar 2019 18:58:07 +0000
(19:58 +0100)
committer
Helmut Grohne
<helmut@subdivi.de>
Tue, 5 Mar 2019 18:58:07 +0000
(19:58 +0100)
depcheck.py
patch
|
blob
|
history
diff --git
a/depcheck.py
b/depcheck.py
index
884f2ad
..
0fbc9c8
100755
(executable)
--- 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