Bug 452676

Summary: %pre failure on install of compiz-fusion-extras-gnome-0.7.6-4.fc10.i386
Product: [Fedora] Fedora Reporter: Tom London <selinux>
Component: compiz-fusion-extrasAssignee: Adel Gadllah <adel.gadllah>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: krh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-24 16:11:28 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:

Description Tom London 2008-06-24 13:47:39 UTC
Description of problem:

Similar problem with compiz-fusion-gnome
(https://bugzilla.redhat.com/show_bug.cgi?id=452674)

/var/tmp/rpm-tmp.78366: line 5: syntax error near unexpected token `do'
/var/tmp/rpm-tmp.78366: line 5: `	do echo /etc/gconf/schemas/compiz-${p}.schemas
; done \'
error: %pre(compiz-fusion-extras-gnome-0.7.6-4.fc10.i386) scriptlet failed, exit
status 2
error:   install: %pre scriptlet failed (2), skipping
compiz-fusion-extras-gnome-0.7.6-4.fc10


Version-Release number of selected component (if applicable):
compiz-fusion-extras-gnome-0.7.6-4.fc10.i386

How reproducible:
Every time

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom London 2008-06-24 13:50:43 UTC
Double 'do' in both %pre and %post at: at end of 'for' and beginning of next line.

[root@localhost packages]# rpm -q --package --scripts
compiz-fusion-extras-gnome-0.7.6-4.fc10.i386.rpm
preinstall scriptlet (using /bin/sh):
if [ "$1" -gt 1 ]; then
  export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`

  for p in in 3d addhelper bench bicubic crashhandler cubeaddon extrawm
fadedesktop firepaint gears group loginout maximumize mblur notification reflex
scalefilter shelf showdesktop showmouse splash trailfocus wallpaper widget; do
	do echo /etc/gconf/schemas/compiz-${p}.schemas ; done \
	| xargs /usr/bin/gconftool-2 --makefile-uninstall-rule >& /dev/null || :

fi
postinstall scriptlet (using /bin/sh):
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`

for p in in 3d addhelper bench bicubic crashhandler cubeaddon extrawm
fadedesktop firepaint gears group loginout maximumize mblur notification reflex
scalefilter shelf showdesktop showmouse splash trailfocus wallpaper widget; do
do echo /etc/gconf/schemas/compiz-${p}.schemas ; done \
	| xargs /usr/bin/gconftool-2 --makefile-install-rule >& /dev/null || :
preuninstall scriptlet (using /bin/sh):
if [ "$1" -eq 0 ]; then
  export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`

  for p in in 3d addhelper bench bicubic crashhandler cubeaddon extrawm
fadedesktop firepaint gears group loginout maximumize mblur notification reflex
scalefilter shelf showdesktop showmouse splash trailfocus wallpaper widget; do
	do echo /etc/gconf/schemas/compiz-${p}.schemas ; done \
	| xargs /usr/bin/gconftool-2 --makefile-uninstall-rule >& /dev/null || :
  
fi
[root@localhost packages]# 


Comment 2 Adel Gadllah 2008-06-24 16:11:28 UTC

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