[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053

Holger Levsen holger at layer-acht.org
Fri Dec 23 10:25:47 UTC 2011


The following commit has been merged in the master branch:
commit 1d1746c4a13ab682d77c605f479d377044d0d9dd
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Nov 13 17:23:13 2011 +0100

    fix syntax error in 9c5ed505

diff --git a/piuparts-slave.py b/piuparts-slave.py
index f54f92e..150fd53 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -427,9 +427,9 @@ def create_or_replace_chroot_tgz(config, tgz, tgz_ctrl, distro):
         statobj = os.stat(tgz)
         # stat.ST_MTIME is actually time file was initially created
         age = now - statobj[stat.ST_MTIME]
-        logging.info("Check-replace tgz: age (%d-%d=%d) vs. max(%d)\n" % (now,statobj[stat.ST_MTIME],age,max_tgz_age))
+        logging.info("Check-replace tgz: age (%d-%d=%d) vs. max(%d)\n" % (now, statobj[stat.ST_MTIME], now - statobj[stat.ST_MTIME], age,max_tgz_age))
         if age > max_tgz_age:
-            logging.info("Limit-replace tgz: retry-time (%d-%d=%d) vs. min(%d)\n" % (now,statobj[stat.ST_CTIME],now - statobj[stat.ST_CTIME],min_tgz_retry_delay))
+            logging.info("Limit-replace tgz: retry-time (%d-%d=%d) vs. min(%d)\n" % (now, statobj[stat.ST_CTIME], now - statobj[stat.ST_CTIME], min_tgz_retry_delay))
             # stat.ST_CTIME is time created OR last renamed
             if min_tgz_retry_delay is None or now - statobj[stat.ST_CTIME] > min_tgz_retry_delay:
                 os.rename(tgz, tgz + ".old")

-- 
piuparts git repository



More information about the Piuparts-commits mailing list