Red Hat Bugzilla – Bug 176785
Scriptlets do not make sense
Last modified: 2015-01-04 17:24:04 EST
the %post/%preun scripts contain code like
| [ -x /sbin/new-kernel-pkg ] && /sbin/new-kernel-pkg ...
This statement makes no sense and causes confusion when /sbin/new-kernel-pkg
does not exists. In this case, the entire expression and the scriptlet will fail
silently without telling the reason. Failing scriptlets are a problem because
they can prevent proper package installation/deinstallation.
I suggest to write either
| [ ! -x /sbin/new-kernel-pkg ] || /sbin/new-kernel-pkg
or omit the [ ... ] completely (which would tell the reason why the scriptlet
Version-Release number of selected component (if applicable):
removed in cvs.