Bug 176785 - Scriptlets do not make sense
Summary: Scriptlets do not make sense
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-02 18:35 UTC by Enrico Scholz
Modified: 2015-01-04 22:24 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-03 05:03:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.



Note You need to log in before you can comment on or make changes to this bug.