On 30/04/12 10:39, Ulrich Mueller wrote:
>>>>>> On Mon, 30 Apr 2012, Krzysztof Pawlik wrote:
> 
>> On 30/04/12 10:12, Ulrich Mueller wrote:
>>> If the eclass doesn't work with FEATURES="collision-protect" then it
>>> needs to be fixed.
> 
>> Long story short: older eclass compiled Python byte code in live
>> file system, new one does it in src_install so .pyo/.pyc gets
>> properly recorded,
> 
> That's a good change.

:)

>> 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)
 - 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)

-- 
Krzysztof Pawlik  <nelchael at gentoo.org>  key id: 0xF6A80E46
desktop-misc, java, vim, kernel, python, apache...

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to