ports/opt (3.3): adwaita-icon-theme: make post-install succeed when gtk is not installed
![](https://secure.gravatar.com/avatar/df8330968b6df8cd1c1942c5fb4b720c.jpg?s=120&d=mm&r=g)
commit 83e4e5ce5e20ec651c09a138ee3990ebb8d61353 Author: Fun <just.the.real.fun@gmail.com> Date: Sun Nov 5 22:02:34 2017 +0200 adwaita-icon-theme: make post-install succeed when gtk is not installed gtk-update-icon-cache is not installed with gtk3, probably to avoid a conflict with gtk, but it is better to exit without an error (right?). diff --git a/adwaita-icon-theme/post-install b/adwaita-icon-theme/post-install index d93cc2bc5..241c89943 100644 --- a/adwaita-icon-theme/post-install +++ b/adwaita-icon-theme/post-install @@ -1,4 +1,7 @@ #!/bin/sh gdk-pixbuf-query-loaders --update-cache -gtk-update-icon-cache -q -t -f /usr/share/icons/Adwaita +# gtk-update-icon-cache comes with gtk, not with gtk3 +if [ -x /usr/bin/gtk-update-icon-cache ]; then + gtk-update-icon-cache -q -t -f /usr/share/icons/Adwaita +fi
participants (1)
-
crux@crux.nu