#!/usr/bin/python3
+# SPDX-License-Identifier: GPL-2.0+
import argparse
import collections
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()
+ now = datetime.datetime.utcnow().replace(microsecond=0)
mapper = multiprocessing.Pool().imap_unordered if args.parallel else map
for architecture, state in mapper(functools.partial(main_docheck, mirror),
archs):