From: Michael Tremer Date: Wed, 10 Aug 2011 14:00:51 +0000 (+0200) Subject: Fix for replacing packages. X-Git-Tag: 0.9.9~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=890c7e931126061811908608ce6e385ee32c66ab;p=pakfire.git Fix for replacing packages. Sometimes, we replace a package by another one with a different name, which causes that the original package is removed. By removing, we delete all files, that may be owned by the new package, which is not recognized as a "to be replaced" package and all files are removed. So, we now do a diff against the whole file database to check if an other package owns a file, we want to remove. If so, we let this file be where it is. --- diff --git a/pakfire/actions.py b/pakfire/actions.py index 9a6c5c2e1..e0bf67890 100644 --- a/pakfire/actions.py +++ b/pakfire/actions.py @@ -144,7 +144,7 @@ class ActionRemove(Action): assert self.pkg def run(self): - self.pkg.remove(_("Removing"), prefix=self.pakfire.path) + self.pkg.cleanup(_("Removing"), prefix=self.pakfire.path) # Remove package from the database. self.local.rem_package(self.pkg)