[PATCH 01/12] Delete ts data instead of trying to undo dep installs. (#851114)
David Lehman
dlehman at redhat.com
Thu Oct 4 22:10:05 UTC 2012
We're going to convert the full ksdata selection into yum again
anyway, so there's no reason to be delicate about it.
---
pyanaconda/packaging/yumpayload.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index beb4226..ab88d90 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -327,6 +327,12 @@ reposdir=%s
for repo in self._yum.repos.repos.values():
repo._sack = None
+ def deleteYumTS(self):
+ with _yum_lock:
+ log.debug("deleting yum transaction info")
+ del self._yum.tsInfo
+ del self._yum.ts
+
def preStorage(self):
self.release()
with _yum_lock:
@@ -1070,9 +1076,7 @@ reposdir=%s
self.txID = time.time()
self.release()
-
- with _yum_lock:
- self._yum._undoDepInstalls()
+ self.deleteYumTS()
self._applyYumSelections()
--
1.7.7.6
More information about the anaconda-patches
mailing list