On 05.01.2012 14:54, Guillaume Rousse wrote:
> Le 04/01/2012 20:13, Luc Menut a écrit :
>> Le 04/01/2012 17:20, Guillaume Rousse a écrit :
>>>> 1) add support for optional README.*.urpmi (%ghost in spec):
>>>> This will allow to build this README.*.urpmi at install time in %pre,
>>>> %post or %trigger only when it's necessary.
>>> That will create files on the system unknown from rpm database, and
>>> unknown from urpmi too.
>>
>> nope, %ghost files are known from rpm database.
>> rpm -qpl task-obsolete-1-1.mga2.noarch.rpm
>> /usr/share/doc/task-obsolete
>> /usr/share/doc/task-obsolete/README.null-dummy.obsolete.urpmi
>> /usr/share/doc/task-obsolete/README.null.obsolete.urpmi
> Then the database will always contains entries for some files that only
> will potentially exist on the systeme. The whole idea of conditionnaly
> creating files in post-installation seems a bad idea.

Those already exist for all localization which is not installed in your
system. However, I do agree it is significantly worse in this case as
the user can wonder why a *documentation* file that seems important by
its filename is missing.

-- 
Anssi Hannula

Reply via email to