Sophie

Sophie

distrib > Mandriva > 9.0 > x86_64 > by-pkgid > 8c2d774a5ee6fd0f4551dc4a2140250d > scriptlet

urpmi-4.0-20.1mdk.noarch.rpm

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