[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Holger Levsen
holger at layer-acht.org
Fri Dec 23 10:25:48 UTC 2011
The following commit has been merged in the master branch:
commit a22d25d737c9449f4961b69ddf4a05f2714ba427
Author: Holger Levsen <holger at layer-acht.org>
Date: Sun Nov 13 17:31:12 2011 +0100
try harder to fix syntax error in 9c5ed505
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 3733714..9acd92f 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(%s)\n" % (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(%s)\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