On Mon, 30 Apr 2012 11:42:56 +0200 Krzysztof Pawlik <nelch...@gentoo.org> wrote:
> >> so the package *has to overwrite* files that are not owned by > >> anyone (no package owns them). > > > > The usual approach to this problem was to have some cleanup code in > > pkg_setup or pkg_preinst that would remove the old files. > > Interesting idea - I see two problems: > - how I would get the list of files for already installed version > (the file list can (and will) differ between versions) As PMS doesn't give us any better tools, you can just look at ${ROOT} in pkg_preinst(). > - PM has a manifest file that lists all installed file, it can check > against it, not against live file system, so just removing the files > may not be enough (just my speculations - I'm not sure of this) It is enough in case of Portage. Especially that those files aren't listed in those manifests. -- Best regards, Michał Górny
signature.asc
Description: PGP signature