Bug 478905 - %post/%preun scripts can fail
Summary: %post/%preun scripts can fail
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-XML-SAX
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Marcela Mašláňová
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-05 22:22 UTC by Ville Skyttä
Modified: 2009-04-28 13:15 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-28 13:15:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Don't let scriptlets fail (725 bytes, patch)
2009-01-05 22:22 UTC, Ville Skyttä
no flags Details | Diff

Description Ville Skyttä 2009-01-05 22:22:40 UTC
Created attachment 328238 [details]
Don't let scriptlets fail

The %post and %preun scripts of perl-XML-SAX can exit with non-zero exit status and thus wreak havoc in rpm transactions.  Fix attached.

I'm undecided whether 2>/dev/null would be welcome (obviously before the "|| :") in both scriptlets, but I suppose I'd be slightly in favor of dropping it because the failure would indicate a quite exceptional case; your call.

Comment 1 Marcela Mašláňová 2009-04-28 13:15:04 UTC
I'd rather leave there /dev/null and also || :

One of my packages was failing on upgrade without /dev/null.


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