Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 76781a0c19a281754a82b3a61ec49d30 > scriptlet

compiz-fusion-extras-gconf-0.9.4-1.fc15.i686.rpm

PREIN

/bin/sh

if [ "$1" -gt 1 ] ; then 
    rm -rf /var/lib/rpm-state/gconf/* 
    for schema in compiz-td compiz-addhelper compiz-animationaddon compiz-bench compiz-bicubic compiz-crashhandler compiz-cubeaddon compiz-extrawm compiz-fadedesktop compiz-firepaint compiz-gears compiz-grid compiz-group compiz-loginout compiz-maximumize compiz-mblur compiz-notification compiz-reflex compiz-scalefilter compiz-shelf compiz-showdesktop compiz-showmouse compiz-splash compiz-trailfocus compiz-wallpaper compiz-widget ; 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

PREUN

/bin/sh

if [ "$1" -eq 0 ] ; then 
    for schema in compiz-td compiz-addhelper compiz-animationaddon compiz-bench compiz-bicubic compiz-crashhandler compiz-cubeaddon compiz-extrawm compiz-fadedesktop compiz-firepaint compiz-gears compiz-grid compiz-group compiz-loginout compiz-maximumize compiz-mblur compiz-notification compiz-reflex compiz-scalefilter compiz-shelf compiz-showdesktop compiz-showmouse compiz-splash compiz-trailfocus compiz-wallpaper compiz-widget ; 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

POSTIN

/bin/sh

for schema in compiz-td compiz-addhelper compiz-animationaddon compiz-bench compiz-bicubic compiz-crashhandler compiz-cubeaddon compiz-extrawm compiz-fadedesktop compiz-firepaint compiz-gears compiz-grid compiz-group compiz-loginout compiz-maximumize compiz-mblur compiz-notification compiz-reflex compiz-scalefilter compiz-shelf compiz-showdesktop compiz-showmouse compiz-splash compiz-trailfocus compiz-wallpaper compiz-widget ; 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