1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

autobuild: only add autobuild.log if it exists

this makes running autobuild on other than sn-devel easier
This commit is contained in:
Andrew Tridgell 2010-10-06 20:15:48 +11:00
parent c24240bcd2
commit 1e2c1c8942

View File

@ -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):