Bug 447074

Summary: yum says package erased when package isn't
Product: [Fedora] Fedora Reporter: Zing <zing>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: ffesti, james.antill, katzj, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: yum-3.2.18-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-08-07 19:58:58 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 Zing 2008-05-17 16:41:33 UTC
Description of problem:
similar to bug 186945, except this case is on removal:

# yum remove avahi-0.6.17-1.fc7.i386
Loaded plugins: changelog, downloadonly
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package avahi.i386 0:0.6.17-1.fc7 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Removing:
 avahi                   i386       0.6.17-1.fc7     installed         688 k

Transaction Summary
=============================================================================
Install      0 Package(s)         
Update       0 Package(s)         
Remove       1 Package(s)         

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing   : avahi                        ######################### [1/1] 

Removed: avahi.i386 0:0.6.17-1.fc7
Complete!
# rpm -q avahi-0.6.17-1.fc7.i386
avahi-0.6.17-1.fc7.i386
# rpm -e avahi-0.6.17-1.fc7.i386
error: %postun(avahi-0.6.17-1.fc7.i386) scriptlet failed, exit status 1

Version-Release number of selected component (if applicable):
yum-3.2.14-10.fc9.noarch
rpm-4.4.2.3-2.fc9.x86_64

How reproducible:
always

Steps to Reproduce:
1. find a package that fails on erasure.
2. yum remove <package>
  
Actual results:
yum says package has been erased.  It hasn't.

Expected results:
some type of error message that erasure has failed.

Comment 1 James Antill 2008-08-07 19:58:58 UTC
 We've added code to do all we can on scriplet errors. I think this kind of problem not returns an error exit code.