package silinince files db dende path bilgileri silinsin
This commit is contained in:
@@ -349,6 +349,7 @@ class Remove(AtomicOperation):
|
|||||||
|
|
||||||
def remove_db(self):
|
def remove_db(self):
|
||||||
ctx.installdb.remove(self.package_name)
|
ctx.installdb.remove(self.package_name)
|
||||||
|
ctx.filesdb.remove_files(ctx.installdb.files(self.package_name))
|
||||||
#FIXME: this looks like a mistake!
|
#FIXME: this looks like a mistake!
|
||||||
packagedb.remove_package(self.package_name)
|
packagedb.remove_package(self.package_name)
|
||||||
|
|
||||||
|
|||||||
@@ -112,6 +112,10 @@ class FilesDB(shelve.LockedDBShelf):
|
|||||||
for x in files.list:
|
for x in files.list:
|
||||||
self[str(x.path)] = (pkg_name, x)
|
self[str(x.path)] = (pkg_name, x)
|
||||||
|
|
||||||
|
def remove_files(self, files):
|
||||||
|
for x in files.list:
|
||||||
|
self.delete(str(x.path))
|
||||||
|
|
||||||
def has_file(self, path):
|
def has_file(self, path):
|
||||||
return self.has_key(str(path))
|
return self.has_key(str(path))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user