PREUN
/bin/sh
if [ "$1" = "0" ]; then
cd /var/lib/urpmi
rm -f compss provides depslist* descriptions.* *.cache hdlist.* synthesis.hdlist.* list.*
cd /var/cache/urpmi
rm -rf partial/* headers/* rpms/*
fi
exit 0
POSTIN
/bin/sh
cd /var/lib/urpmi
rm -f compss provides depslist*
misconfigured=0
for hdlist in hdlist.*; do
if [ -s "$hdlist" -a ! -s "synthesis.$hdlist" ]; then
misconfigured=1
fi
done
if [ -z "$DURING_INSTALL" -a "$misconfigured" -ge 1 ]; then
rm -f synthesis.hdlist.* && /usr/sbin/urpmi.update -a
fi
#%preun -n autoirpm
#[ -x /usr/sbin/autoirpm.uninstall ] && /usr/sbin/autoirpm.uninstall