Bug 1000712 - wrong %post
Summary: wrong %post
Keywords:
Status: CLOSED DUPLICATE of bug 995158
Alias: None
Product: Fedora
Classification: Fedora
Component: acpid
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-24 13:50 UTC by Michael S.
Modified: 2013-08-26 08:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-26 08:08:56 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Michael S. 2013-08-24 13:50:16 UTC
$ rpm -q --scripts acpid 
preinstall scriptlet (using /bin/sh):
if [ "$1" = "2" ]; then
	conflist=`ls /etc/acpi/events/*.conf 2> /dev/null`
	RETCODE=$?
	if [ $RETCODE -eq 0 ]; then
		for i in $conflist; do
			rmdot=`echo $i | sed 's/.conf/conf/'`
	 		mv $i $rmdot
		done
	fi
fi
postinstall scriptlet (using /bin/sh):
%systemd_post acpid.service
preuninstall scriptlet (using /bin/sh):
%systemd_preun acpid.service
postuninstall scriptlet (using /bin/sh):
%systemd_postun_with_restart acpid.service

It seems the macros were not expanded correctly.

And this package is the one in update :
$ rpm -q  acpid          
acpid-2.0.19-5.fc19.x86_64

Comment 1 Jaroslav Škarvada 2013-08-26 08:08:56 UTC
It should be fixed in acpid-2.0.19-6.fc19. You will probably need to get rid of the acpid-2.0.19-5.fc19 by using rpm with the --noscripts parameter. Sorry for the inconvenience something in the build system changed.

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


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