[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


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


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:

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?


More information about the Fedora-packaging mailing list