[jhbuild] Handle OSError when deleting .la files & don't print (Bug 647231)
- From: Craig Keogh <cskeogh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Handle OSError when deleting .la files & don't print (Bug 647231)
- Date: Sat, 18 Jun 2011 12:08:59 +0000 (UTC)
commit e83c49582b22176f450179d02500f722e44dfa64
Author: Craig Keogh <cskeogh adam com au>
Date: Sat Jun 18 21:36:29 2011 +0930
Handle OSError when deleting .la files & don't print (Bug 647231)
print is removed because it breaks i10n, tinderbox & quiet mode
jhbuild/modtypes/__init__.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/modtypes/__init__.py b/jhbuild/modtypes/__init__.py
index 3d10e47..739d043 100644
--- a/jhbuild/modtypes/__init__.py
+++ b/jhbuild/modtypes/__init__.py
@@ -164,8 +164,10 @@ class Package:
for name in files:
path = os.path.join(installroot, name)
if name.endswith('.la'):
- print "Deleting %r" % (path, )
- os.unlink(path)
+ try:
+ os.unlink(path)
+ except OSError:
+ pass
elif os.path.isdir(path):
self._clean_la_files(path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]