Bug 228771 (yum-pre-error)

Summary: yum error handling looks quite confused
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
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: 2007-08-09 20:40:06 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 Michal Jaegermann 2007-02-14 21:22:03 UTC
Description of problem:

Preinstall script from control-center-2.17.91-1.fc7 ends with
a status 1.  This has the following effects in yum:

Running Transaction
error: %pre(control-center-2.17.91-1.fc7.x86_64) scriptlet failed,
exit status 1
error:   install: %pre scriptlet failed (2), skipping control-center-2.17.91-1.fc7

Updated: control-center.x86_64 1:2.17.91-1.fc7
Complete!

The above would be fine if not the last two lines above and
a /var/log/yum entry which says:

Feb 14 14:13:10 Updated: control-center.x86_64 1:2.17.91-1.fc7

while 'rpm -q control-center' knows only about
control-center-2.17.90-6.fc7

Version-Release number of selected component (if applicable):
yum-3.1.1-2.fc7

How reproducible:
on every try

Comment 1 Jeremy Katz 2007-02-21 22:06:09 UTC
The problem here is that rpmlib doesn't actually give any indication to callers
that there was an error :/

Comment 2 Seth Vidal 2007-08-03 19:39:57 UTC
reassigning to rpm

Comment 3 Panu Matilainen 2007-08-09 20:40:06 UTC
Different scriptlet failing but the core issue is the same...

*** This bug has been marked as a duplicate of 216221 ***