Bug 681293

Summary: posttrans is broken
Product: [Fedora] Fedora Reporter: Matthias Clasen <mclasen>
Component: abrtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: anton, dvlasenk, iprikryl, jmoskovc, kklic, mlichvar, mtoman, npajkovs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-11 13:11:23 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:
Bug Depends On:    
Bug Blocks: 744774    

Description Matthias Clasen 2011-03-01 17:29:04 UTC
My livecd build was hanging after package installation, and when I killed it, I got:

warning: %posttrans(abrt-1.1.17-1.fc15.1.x86_64) scriptlet failed, signal 2

Nottings comment was:

posttrans scriptlet (using /bin/sh):
if [ "$1" -eq "0" ]; then
    service abrtd condrestart >/dev/null 2>&1 || :
fi
that's broken

a) that goes in %postun, not %posttrans
b) that's supposed to test "$1" -ge "1"

Comment 1 Miroslav Lichvar 2011-10-11 13:11:23 UTC
This looks like a duplicate of bug #704415.

While we'd like to use %postun, there doesn't seem to be an easy way how to migrate from %posttrans. The first update wouldn't restart the service because the old package doesn't have a %postun yet.

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