Page MenuHomec4science

liboncilla-dev.preinst
No OneTemporary

File Metadata

Created
Sat, Nov 30, 08:42

liboncilla-dev.preinst

#!/bin/sh
set -e
pkg=liboncilla-dev
diversion_added_version=0.3.0~rc7-3
this_version=0.3.0~rc7-3
diversions="/usr/lib/librsc.so /usr/lib/librci.so /usr/lib/pkgconfig/rsc0.9.pc"
if
test "$1" = install \
|| dpkg --compare-versions "$2" lt "$diversion_added_version" \
|| dpkg --compare-versions "$this_version" lt "$2"
then
for d in $diversions
do
dpkg-divert --package "$pkg" --add --rename \
--divert "$d.diverted-$pkg" $d
done
fi
#DEBHELPER#
exit 0

Event Timeline