On 20 November 2011 16:13, Guido Berhoerster <gber@opensuse.org> wrote:
* Cristian Morales Vega <cmorve69@yahoo.es> [2011-11-20 15:57]:
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.
OK, thanks. So I don't know why a 11.3 build failed to me (later I noticed 11.3 does not have the macros) but I workarounded that... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org