fix clientDbconn call in removePackage()

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@526 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2007-09-28 15:29:57 +00:00
parent 7d4d87e7ca
commit 91a3bfbbc5
+2
View File
@@ -1050,9 +1050,11 @@ def removePackage(infoDict):
# load content cache if found empty
if etpConst['collisionprotect'] > 0:
if (not contentCache):
clientDbconn = openClientDatabase()
xlist = clientDbconn.listAllFiles(clean = True)
for x in xlist:
contentCache[x] = 1
closeClientDatabase(clientDbconn)
# remove from database
if removeidpackage != -1: