summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-04-30 17:19:27 -0400
committerChris Lumens <clumens@redhat.com>2009-04-30 17:22:36 -0400
commit9831be217d043fa21cf63b3415c8170c73a8f1fc (patch)
tree1de4ada509dc5d2bcca7dd0bcc82b0d4cf768c9d /packages.py
parent57352b956a84d723c423e732efad8f9311c0d830 (diff)
downloadanaconda-9831be217d043fa21cf63b3415c8170c73a8f1fc.tar.gz
anaconda-9831be217d043fa21cf63b3415c8170c73a8f1fc.tar.xz
anaconda-9831be217d043fa21cf63b3415c8170c73a8f1fc.zip
Move _resetRpmDb into iutil so we can access it everywhere.
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/packages.py b/packages.py
index 33457772d..f59cd7b09 100644
--- a/packages.py
+++ b/packages.py
@@ -307,13 +307,7 @@ def rpmKernelVersionList(rootPath = "/"):
versions = []
- # FIXME: and make sure that the rpmdb doesn't have stale locks :/
- for rpmfile in glob.glob("%s/var/lib/rpm/__db.*" % rootPath):
- try:
- os.unlink(rpmfile)
- except:
- log.debug("failed to unlink %s" % rpmfile)
-
+ iutil.resetRpmDb(rootPath)
ts = rpm.TransactionSet(rootPath)
mi = ts.dbMatch('provides', 'kernel')