Bug 843445 - Error message from PREUN scriptlet is not printed from YUM
Summary: Error message from PREUN scriptlet is not printed from YUM
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-26 11:05 UTC by Petr Spacek
Modified: 2014-01-21 23:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-05-30 08:49:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Spacek 2012-07-26 11:05:01 UTC
Description of problem:
Error message from PREUN scriptlet is not printed from YUM.


Version-Release number of selected component (if applicable):
yum-3.4.3-28.fc17.noarch


How reproducible:
Always


Steps to Reproduce:
1. Try to remove arbitrary package which fails in PREUN with arbitrary error message
  

Actual results:
# yum -y remove VirtualBox-4.1
Loaded plugins: auto-update-debuginfo, langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package VirtualBox-4.1.x86_64 0:4.1.8_75467_fedora16-1 will be erased

... snip ...

Removing:
 VirtualBox-4.1                  x86_64                  4.1.8_75467_fedora16-1                   @/VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64/16

... snip ...

Installed size: 114 M
Downloading Packages:
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Error in PREUN scriptlet in rpm package VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64
  Verifying  : VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64

Failed:
  VirtualBox-4.1.x86_64 0:4.1.8_75467_fedora16-1


Expected results:
YUM should print error message from PREUN scripts (as RPM does):
# rpm -e VirtualBox-4.1
A copy of VirtualBox is currently running.  Please close it and try again.
Please note that it can take up to ten seconds for VirtualBox (in particular
the VBoxSVC daemon) to finish running.
error: %preun(VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64) scriptlet failed, exit status 1
error: VirtualBox-4.1-4.1.8_75467_fedora16-1.x86_64: erase failed

Comment 1 Panu Matilainen 2013-05-30 08:49:25 UTC
Technically this was fixed in yum-3.4.3-29.fc17.noarch but the fix requires support from rpm side, support which is only available in rpm >= 4.10 (ie Fedora >= 18).


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