Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-testing > by-pkgid > 8d32ce60a7afa3a5cf2d2043c920d426 > scriptlet

openoffice.org-wiki-publisher-3.1.1-0.2mdv2009.1.x86_64.rpm

PREUN

/bin/sh
if [ $1 -eq 0 ];then
	idextension=$(unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.wiki-publisher\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		unopkg remove --shared $idextension 2> /dev/null
		unopkg list --shared &> /dev/null
	fi
fi

POSTIN

/bin/sh
# upgrade 
if [ $1 -ge 2 ];then
	idextension=$(unopkg list --shared 2> /dev/null | sed -ne 's/^Identifier: \(com.sun.wiki-publisher\)/\1/p');
	if [ "z$idextension" != "z" ]; then
		unopkg remove --shared $idextension 2> /dev/null
		unopkg list --shared &> /dev/null
	fi
fi	
#install 
unopkg add --shared /usr/lib64/ooo/wiki-publisher.oxt 2> /dev/null
unopkg list --shared &> /dev/null