handing files under $HOME directory on scriptlet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
Fedora-packaging mailing list
Fedora-packaging@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-packaging

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux