diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-03-31 18:49:49 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-03-31 18:49:49 +0200 |
commit | a632da0b9823751e9ff0bddd8d88a47e5178e7d4 (patch) | |
tree | 8ac5047c5c07d34e96c1b16191067a1cd0d1ac3e | |
parent | 4307afa7ded9e76b73a3a61a2ee2fa73631d5fe4 (diff) |
ignore unlink errors
-rw-r--r-- | make-sgpkg.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/make-sgpkg.py b/make-sgpkg.py index 68e1761..e74c332 100644 --- a/make-sgpkg.py +++ b/make-sgpkg.py @@ -204,7 +204,11 @@ def main(argv): if verbose: print "Cleaning up tempdir at %s" % tmpdir shutil.rmtree(tmpdir) - os.unlink(os.path.expanduser(properties)) + try: + os.stat(os.path.expanduser(properties)) + os.unlink(os.path.expanduser(properties)) + except OSError: + pass # ignore missing file or unlink error return ret |