[Lsb-messages] /var/www/bzr/lsb/devel/buildbot-config r202: Check for the existence of the staging tree before trying to delete it.

Jeff Licquia licquia at linuxfoundation.org
Fri Feb 10 21:26:24 UTC 2012


------------------------------------------------------------
revno: 202
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: buildbot-config
timestamp: Fri 2012-02-10 16:26:24 -0500
message:
  Check for the existence of the staging tree before trying to delete it.
modified:
  update-staging
-------------- next part --------------
=== modified file 'update-staging'
--- a/update-staging	2012-02-10 19:28:22 +0000
+++ b/update-staging	2012-02-10 21:26:24 +0000
@@ -23,7 +23,8 @@
     return (prj, area, arch)
 
 def main():
-    shutil.rmtree(staging_path)
+    if os.path.exists(staging_path):
+        shutil.rmtree(staging_path)
 
     for tarball in os.listdir(master_path):
         if tarball[-6:] != 'tar.gz':



More information about the lsb-messages mailing list