[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Holger Levsen
holger at layer-acht.org
Fri Dec 23 10:26:15 UTC 2011
The following commit has been merged in the master branch:
commit 2e63ef1fa3ac3c749378abbaf8fb1cd083cb9efe
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon Nov 21 19:51:00 2011 +0100
fix logging
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 9d8b145..ef2971c 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -444,7 +444,7 @@ def create_or_replace_chroot_tgz(config, tgz, tgz_ctrl, distro):
age = now - statobj[stat.ST_MTIME]
logging.info("Check-replace %s: age=%d vs. max=%d" % (tgz, age, max_tgz_age))
if age > max_tgz_age:
- logging.info("Limit-replace %s: last-retry=%d vs. min=%d" % (now - statobj[stat.ST_CTIME], min_tgz_retry_delay))
+ logging.info("Limit-replace %s: last-retry=%d vs. min=%d" % (tgz, 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