[Piuparts-commits] [piuparts] 01/01: p-s: skip section if tarball is missing
Holger Levsen
holger at alioth.debian.org
Thu Nov 7 10:22:45 UTC 2013
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit 26c59de03f43dcbf98906f1007f2482cf24b11bb
Author: Andreas Beckmann <anbe at debian.org>
Date: Wed Nov 6 14:41:26 2013 +0100
p-s: skip section if tarball is missing
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
piuparts-slave.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/piuparts-slave.py b/piuparts-slave.py
index fc1dc52..c37ced2 100644
--- a/piuparts-slave.py
+++ b/piuparts-slave.py
@@ -415,8 +415,10 @@ class Section:
create_or_replace_chroot_tgz(self._config, self._get_tarball(),
self._config.get_start_distro())
+ exists = os.path.exists(self._get_tarball())
os.chdir(oldcwd)
+ return exists
def _count_submittable_logs(self):
files = 0
@@ -593,8 +595,12 @@ class Section:
self._error_wait_until = time.time() + 900
return 0
+ if not self._check_tarball():
+ logging.error("could not find the chroot-tgz tarball")
+ self._error_wait_until = time.time() + 900
+ return 0
+
test_count = 0
- self._check_tarball()
for package_name, version in self._slave.get_reserved():
self._throttle_if_overloaded()
if interrupted or got_sighup:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list