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
/usr/bin/perl
use urpm::media;
if (-e "/etc/urpmi/urpmi.cfg") {
$urpm = new urpm;
urpm::media::read_config($urpm);
urpm::media::update_media($urpm, nolock => 1, nopubkey => 1);
}
Triggers
urpmi <
4.10.6
/bin/sh
if [ -d /var/lib/urpmi ]; then
cd /var/lib/urpmi
for i in hdlist*.cz; do
if [ -e "synthesis.$i" ]; then
echo "forcing synthesis.$i to be regenerated"
rm "synthesis.$i"
# needed to ensure synthesis has "suggests"
fi
done
fi