summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-03-12 18:59:08 -0400
committerWill Woods <wwoods@redhat.com>2009-03-12 18:59:08 -0400
commit9b9141e601f2a0f3491f912b2d3517e92e1bfa2f (patch)
tree4527c9774ee13ac6f1f5747566290e49e412ed7b
parent907e583d68fae9d14ac9b5b022f0703c1d3b51b3 (diff)
downloaddebuginfofs-9b9141e601f2a0f3491f912b2d3517e92e1bfa2f.zip
debuginfofs-9b9141e601f2a0f3491f912b2d3517e92e1bfa2f.tar.gz
debuginfofs-9b9141e601f2a0f3491f912b2d3517e92e1bfa2f.tar.xz
Don't traceback if removing libdir fails
-rwxr-xr-xserver/debuginfofs-mirror7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/debuginfofs-mirror b/server/debuginfofs-mirror
index 2db31f6..fd5ad30 100755
--- a/server/debuginfofs-mirror
+++ b/server/debuginfofs-mirror
@@ -368,8 +368,11 @@ def main():
r = mkdebuginfolinks(targetdir, os.path.join(opt.exportdir,'build-id'))
y.logger.info("Linked %3i debuginfo file%s" % (r, r != 1 and "s" or ""))
if not opt.keep_lib:
- # TODO: it'd be good to nuke all of the extra dirs
- shutil.rmtree(os.path.join(targetdir,"usr/lib/debug"))
+ # TODO: it'd be good to nuke all the extra dirs
+ try:
+ shutil.rmtree(os.path.join(targetdir,"usr/lib/debug"))
+ except (IOError, OSError), e:
+ y.logger.error("Error removing libdir: %s" % str(e))
y.verbose_logger.info("Downloaded %i packages" % downloadcount)
y.verbose_logger.info("Unpacked %i packages" % unpackcount)