http://bugzilla.opensuse.org/show_bug.cgi?id=1048837
http://bugzilla.opensuse.org/show_bug.cgi?id=1048837#c2
--- Comment #2 from Richard Weinberger
You don't need to match the output. You can run e.g. patch-check and test for return code 101:
$ zypper pchk ... Found 163 applicable patches: Category | Updatestack | Patches | Locked ------------+-------------+---------+------- security | - | 99 | 1 recommended | 2 | 58 | 1 optional | - | 2 | -
2 patches locked 2 patches optional 159 patches needed (99 security patches)
EXIT CODES
100 - ZYPPER_EXIT_INF_UPDATE_NEEDED Returned by the patch-check command if there are patches available for installation.
101 - ZYPPER_EXIT_INF_SEC_UPDATE_NEEDED Returned by the patch-check command if there are security patches available for installation.
Oh, that's much better. Thanks! -- You are receiving this mail because: You are on the CC list for the bug.