[jhbuild/wip/destdir: 9/10] packagedb: Handle non-existent file correctly
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/wip/destdir: 9/10] packagedb: Handle non-existent file correctly
- Date: Thu, 16 Jun 2011 00:25:40 +0000 (UTC)
commit 50a1e7d5aeb32bb50ebba9e309b19ae0098bc417
Author: Colin Walters <walters verbum org>
Date: Wed Jun 15 20:11:28 2011 -0400
packagedb: Handle non-existent file correctly
jhbuild/utils/packagedb.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/utils/packagedb.py b/jhbuild/utils/packagedb.py
index 4f85bdc..4422295 100644
--- a/jhbuild/utils/packagedb.py
+++ b/jhbuild/utils/packagedb.py
@@ -83,6 +83,8 @@ class PackageDB:
f = open(self.dbfile)
except OSError, e:
return # treat as empty cache
+ except IOError, e:
+ return
doc = ET.parse(f)
root = doc.getroot()
if root.tag != 'packagedb':
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]