[Fedora-packaging] handing files under $HOME directory on scriptlet

Mamoru Tasaka mtasaka at ioa.s.u-tokyo.ac.jp
Wed Feb 27 13:24:04 UTC 2008


Hi.

Now I am trying to review gnome-menu-extended.

https://bugzilla.redhat.com/show_bug.cgi?id=426026

The main purpose of this package is to add KDE related submenus to
GNOME panel menu.

What I cannot judge for now is about the %postun scriptlet of the spec file:

-------------------------------------------------------------
%postun
rm -f /home/*/.local/share/applications/%{name}.desktop
rm -f /root/.local/share/applications/%{name}.desktop
--------------------------------------------------------------

Well, at least 
- if [ $1 = 0 ] ; then ..... ; fi is needed
- This scriptlet cannot handle the case in which $HOME is not /home

However the  point is that this scriptlet is trying to handle 
(in this case delete) files under $HOME directory at %postun.
Is this allowed?

Regards,
Mamoru




More information about the Fedora-packaging mailing list