Bug 681293 - posttrans is broken
Summary: posttrans is broken
Keywords:
Status: CLOSED DUPLICATE of bug 704415
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: ABRTF17
TreeView+ depends on / blocked
 
Reported: 2011-03-01 17:29 UTC by Matthias Clasen
Modified: 2011-10-11 13:11 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-10-11 13:11:23 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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