Bug 247322 - hplip broken preinstall scriptlet prevents an installation
Summary: hplip broken preinstall scriptlet prevents an installation
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-07-06 22:03 UTC by Michal Jaegermann
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version: 2.7.6-3.fc8
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-07-07 22:33:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2007-07-06 22:03:04 UTC
Description of problem:

Watch this:

# yum install hplip.x86_64
....
Downloading Packages:
(1/1): hplip-2.7.6-1.fc8. 100% |=========================| 9.8 MB    02:22
.....
Transaction Test Succeeded
Running Transaction
error: %pre(hplip-2.7.6-1.fc8.x86_64) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping hplip-2.7.6-1.fc8

Installed: hplip.x86_64 0:2.7.6-1.fc8
Complete!
# rpm -q hplip
package hplip is not installed

Putting aside a problem with yum which claims that it installed
something while this is not really true (see bug 186945) the problem
is really here:

# rpm -q  --scripts hplip
preinstall scriptlet (using /bin/sh):
# No daemons any more.
[ -x /etc/init.d/hplip ] && /sbin/service hplip stop

That script fails if /etc/init.d/hplip does not exist or, possibly,
when it was not running.  Adding 'exit 0' in the next line would
cover all contingencies.

Version-Release number of selected component (if applicable):
hplip-2.7.6-1.fc8


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