* Cristian Morales Vega
The macros (non only this one, also the MIME and icon ones) are creating scripts like this:
if test -x /usr/bin/update-desktop-database; then /usr/bin/update-desktop-database --quiet "/usr/share/applications" || true fi
It is not going to fail if /usr/bin/update-desktop-database doesn't exist? If the execution fails the "|| true" will ensure that the exit result is 0. But if it doesn't exist the exit result will be the one from "test -x"...
No, it will be zero. The exit status of an "if" command will be zero if the compound list following the "if" exits with a non-zero exit status and there is no "else"/"elif". The "if" is redundant here but it will not do any harm either. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org