https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache
%post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi
%posttrans /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
Somebody with write-access to that page, please add the missing " || :" to the end of the /bin/touch line in the %postun scriptlet.
Then the code would be consistent with its explanation on the page.
On 2013-07-29 11:27, Michael Schwendt wrote:
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache [...] Somebody with write-access to that page, please add the missing " || :" to the end of the /bin/touch line in the %postun scriptlet.
It's not necessary, so I don't think it should be added.
Then the code would be consistent with its explanation on the page.
I don't see how it is not consistent at the moment, could you elaborate?
On Mon, 29 Jul 2013 18:28:12 +0300, Ville Skyttä wrote:
https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Icon_Cache [...] Somebody with write-access to that page, please add the missing " || :" to the end of the /bin/touch line in the %postun scriptlet.
It's not necessary, so I don't think it should be added.
Then the code would be consistent with its explanation on the page.
I don't see how it is not consistent at the moment, could you elaborate?
No, it's not necessary. I've been confused for a moment by derived scriptlets (for three icon dirs) which set the exit code more often than necessary.
packaging@lists.fedoraproject.org