Bug 478905
Summary: | %post/%preun scripts can fail | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Ville Skyttä <ville.skytta> | ||||
Component: | perl-XML-SAX | Assignee: | Marcela Mašláňová <mmaslano> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | kasal, mmaslano, robin.norwood | ||||
Target Milestone: | --- | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-04-28 13:15:04 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: | |||||||
Attachments: |
|
I'd rather leave there /dev/null and also || : One of my packages was failing on upgrade without /dev/null. |
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.