[Piuparts-commits] [SCM] piuparts git repository branch, master, updated. eda668423fa87898c59d1075118693714aa5a053
Holger Levsen
holger at layer-acht.org
Fri Dec 23 10:25:20 UTC 2011
The following commit has been merged in the master branch:
commit 219d125b63e54690342d8fcfca1ac2c3bd86188c
Author: Scott Schaefer <saschaefer at neurodiverse.org>
Date: Tue Nov 1 20:44:42 2011 -0400
Log values to determine problem recreaeting chroot tgz file reliably
diff --git a/piuparts-slave.py b/piuparts-slave.py
index 730b29f..eb35a79 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -427,7 +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))
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))
# 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