[yum-commits] Branch 'yum-3_2_X' - yum/rpmsack.py

skvidal at osuosl.org skvidal at osuosl.org
Wed Apr 1 20:08:50 UTC 2009


 yum/rpmsack.py |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit 68817680c6bcdbedff45e045c42cce5598f5a6d0
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Apr 1 16:07:11 2009 -0400

    revert the dir removal. Don't cleanup the dir unless we sync up the rpmdb

diff --git a/yum/rpmsack.py b/yum/rpmsack.py
index 653ae1d..ccdc310 100644
--- a/yum/rpmsack.py
+++ b/yum/rpmsack.py
@@ -760,12 +760,6 @@ class RPMDBAdditionalDataPackage(object):
                 os.unlink(fn)
             except (IOError, OSError):
                 raise AttributeError, "Cannot delete attribute %s on " % (attr, self)
-            else:
-                if not self._read_cached_data:
-                    try:
-                        os.rmdir(self._mydir)
-                    except:
-                        pass
     
     def __getattr__(self, attr):
         return self._read(attr)


More information about the Yum-commits mailing list