Bug 176785

Summary: Scriptlets do not make sense
Product: [Fedora] Fedora Reporter: Enrico Scholz <rh-bugzilla>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: pfrields, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-01-03 05:03:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Enrico Scholz 2006-01-02 18:35:45 UTC
of problem:

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
fails).


Version-Release number of selected component (if applicable):

kernel-2.6.14-1.1696_FC5

Comment 1 Dave Jones 2006-01-03 05:03:14 UTC
removed in cvs.