[calm - Cygwin server-side packaging maintenance script] branch master, updated. 44c6acc7bfd161dda54dd03ad72d00776f3b54e4

jturney@sourceware.org jturney@sourceware.org
Tue Mar 29 15:10:00 GMT 2016




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=44c6acc7bfd161dda54dd03ad72d00776f3b54e4

commit 44c6acc7bfd161dda54dd03ad72d00776f3b54e4
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Tue Mar 29 12:21:56 2016 +0100

    Don't emit warnings about ignored upload files on every run
    
    Periodically emit warnings about apparently forgotten upload files which are
    being ignored, but not on every run
    
    v2:
    Don't count dryruns


Diff:
---
 uploads.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/uploads.py b/uploads.py
index e3f6d78..031e5c2 100644
--- a/uploads.py
+++ b/uploads.py
@@ -71,6 +71,7 @@ def scan(m, all_packages, args):
         reminder_time = os.path.getmtime(reminder_file)
     else:
         reminder_time = 0
+    logging.debug("reminder-timestamp %d, interval %d, next reminder %d, current time %d" % (reminder_time, REMINDER_INTERVAL, reminder_time + REMINDER_INTERVAL, time.time()))
 
     # scan package directories
     for (dirpath, subdirs, files) in os.walk(os.path.join(basedir, 'release')):
@@ -133,7 +134,8 @@ def scan(m, all_packages, args):
                     # about files being ignored, warn again
                     if time.time() > (reminder_time + REMINDER_INTERVAL):
                         lvl = logging.WARNING
-                        touch(reminder_file)
+                        if not args.dryrun:
+                            touch(reminder_file)
 
                     logging.log(lvl, "ignoring %s as there is no !ready" % fn)
                 else:



More information about the Cygwin-apps-cvs mailing list