[yum-commits] plugins/auto-update-debuginfo

James Antill james at osuosl.org
Tue Apr 26 14:12:35 UTC 2011


 plugins/auto-update-debuginfo/auto-update-debuginfo.py |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 00bbf2fdb37e02e38679a1cd782bf408046d8505
Author: James Antill <james at and.org>
Date:   Tue Apr 26 10:12:11 2011 -0400

    try/except the open, for the rpmdbv cached data (a-u-d plugin).

diff --git a/plugins/auto-update-debuginfo/auto-update-debuginfo.py b/plugins/auto-update-debuginfo/auto-update-debuginfo.py
index 501939b..39993ad 100644
--- a/plugins/auto-update-debuginfo/auto-update-debuginfo.py
+++ b/plugins/auto-update-debuginfo/auto-update-debuginfo.py
@@ -83,7 +83,11 @@ def _write_cached(cfname, rpmdbv, num):
         except (IOError, OSError), e:
             return
 
-    fo = open(cfname + ".tmp", "w")
+    try:
+        fo = open(cfname + ".tmp", "w")
+    except (IOError, OSError), e:
+        return
+
     fo.write(str(rpmdbv))
     fo.write('\n')
     fo.write(str(num))


More information about the Yum-commits mailing list