[Piuparts-commits] rev 609 - in trunk: . debian
Holger Levsen
holger at alioth.debian.org
Tue Dec 29 14:25:03 UTC 2009
Author: holger
Date: 2009-12-29 14:25:01 +0000 (Tue, 29 Dec 2009)
New Revision: 609
Modified:
trunk/debian/changelog
trunk/piuparts-slave.py
Log:
piuparts-slave.py: fix bug which prevents the slave from sleeping at all.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2009-12-29 14:15:24 UTC (rev 608)
+++ trunk/debian/changelog 2009-12-29 14:25:01 UTC (rev 609)
@@ -16,6 +16,7 @@
(=waiting-to-be-tested is calculated correctly). This bug was present
before this change.
TODO: make packagesDB.py read config
+ * piuparts-slave.py: fix bug which prevents the slave from sleeping at all.
-- Holger Levsen <holger at debian.org> Fri, 18 Dec 2009 13:32:16 +0100
Modified: trunk/piuparts-slave.py
===================================================================
--- trunk/piuparts-slave.py 2009-12-29 14:15:24 UTC (rev 608)
+++ trunk/piuparts-slave.py 2009-12-29 14:25:01 UTC (rev 609)
@@ -448,7 +448,7 @@
section.run()
idle = True
for section_name in section_names:
- if os.listdir(os.path.join(global_config["master-directory"],section_name,"reserved")):
+ if len(os.listdir(os.path.join(global_config["master-directory"],section_name,"reserved"))) > 0:
idle = False
if idle:
logging.info("Nothing to do, sleeping for a bit")
More information about the Piuparts-commits
mailing list