# usages:
# .../dgit-repos-server DISTRO SUITES KEYRING-AUTH-SPEC \
# DGIT-REPOS-DIR POLICY-HOOK-SCRIPT --ssh
+# .../dgit-repos-server DISTRO SUITES KEYRING-AUTH-SPEC \
+# DGIT-REPOS-DIR POLICY-HOOK-SCRIPT --cron
# internal usage:
# .../dgit-repos-server --pre-receive-hook PACKAGE
#
#
# policy hook for a particular package will be invoked only once at
# a time - (see comments about DGIT-REPOS-DIR, above)
+#
+# check-list and check-package are invoked via the --cron option.
+# First, without any locking, check-list is called. It should produce
+# a list of package names. Then check-package will be invoked for
+# each named package, in each case after taking an appropriate lock.
use POSIX;