Re: ScriptletSnippets: desktop-database,mimeinfo

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

 



nicolas.mailhot@xxxxxxxxxxx (Nicolas Mailhot) writes:

> You have exactly the same problem with fonts and fc-cache.

The fc-cache case is easier because the locations of all possible cache
files are known to the 'fc-cache' program. For gtk-update-icon-cache,
you have to enumerate them manually.


> postinstall scriptlet (using /bin/sh):
> if [ -x /usr/bin/fc-cache ]; then
>   /usr/bin/fc-cache /usr/share/fonts

Here, a '|| :' should be added. Else, scriptlets will fail when /usr/share
is shared between multiple hosts and mounted read-only therefore.


> fi

This scriptlet can be written shorter as

| %post
| /usr/bin/fc-cache /usr/share/fonts >/dev/null 2>&1 || :



Enrico

Attachment: pgpFHawhU0dYj.pgp
Description: PGP signature

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

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux