From 1e2c1c89427c8230acb12a755d44d6b46b05a906 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 6 Oct 2010 20:15:48 +1100 Subject: autobuild: only add autobuild.log if it exists this makes running autobuild on other than sn-devel easier --- script/autobuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') diff --git a/script/autobuild.py b/script/autobuild.py index b639c601ed..fe0c1e2b3a 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -215,7 +215,8 @@ class buildlist(object): for b in self.tlist: tar.add(b.stdout_path, arcname="%s.stdout" % b.tag) tar.add(b.stderr_path, arcname="%s.stderr" % b.tag) - tar.add("autobuild.log") + if os.path.exists("autobuild.log"): + tar.add("autobuild.log") tar.close() def remove_logs(self): -- cgit