Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > a4ab26b3daf7627959cc18e2afc1550a > scriptlet

alexandria-0.6.6-2.svn1154_trunk.fc14.noarch.rpm

PREIN

/bin/sh

if [ "$1" -gt 1 ] ; then 
    rm -rf /var/lib/rpm-state/gconf/* 
    for schema in alexandria ; do 
        if test -f /etc/gconf/schemas/"$schema".schemas ; then 
            cp -p /etc/gconf/schemas/"$schema".schemas /var/lib/rpm-state/gconf/ || : 
        fi 
    done 
fi 
exit 0

PREUN

/bin/sh

if [ "$1" -eq 0 ] ; then 
    for schema in alexandria ; do 
        
        if test -f /etc/gconf/schemas/"$schema".schemas ; then 
            export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
            gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
        fi 
    done 
fi 
exit 0

POSTIN

/bin/sh
touch --no-create /usr/share/icons/hicolor/

for schema in alexandria ; do 
    if test -f /var/lib/rpm-state/gconf/"$schema".schemas ; then 
        cmp --quiet /etc/gconf/schemas/"$schema".schemas /var/lib/rpm-state/gconf/"$schema".schemas 
        if test $? != 0; then
            
        if test -f /etc/gconf/schemas/"$schema".schemas ; then 
            export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
            gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
        fi 
            export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
            gconftool-2 --makefile-install-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
        fi 
        rm -f /var/lib/rpm-state/gconf/"$schema".schemas 
    else 
        export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 
        gconftool-2 --makefile-install-rule /etc/gconf/schemas/"$schema".schemas > /dev/null || : 
    fi 
done 

exit 0

POSTUN

/bin/sh
[ "$1" -eq 0 ] || exit 0

touch --no-create /usr/share/icons/hicolor/
/usr/bin/gtk-update-icon-cache --quiet /usr/share/icons/hicolor

exit 0

POSTTRANS

/bin/sh
/usr/bin/gtk-update-icon-cache --quiet /usr/share/icons/hicolor
exit 0