set -e
if [ "$1" = remove -o "$1" = purge ]; then
- dpkg-divert --quiet --package ocsinventory-agent-srce --remove --rename \
+ dpkg-divert --quiet --package ocsinventory-agent-cn --remove --rename \
/usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm || true
- dpkg-divert --quiet --package ocsinventory-agent-srce --remove --rename \
+ dpkg-divert --quiet --package ocsinventory-agent-cn --remove --rename \
/usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm || true
fi
set -e
if [ "$1" = install -o "$1" = upgrade ]; then
- dpkg-divert --quiet --package ocsinventory-agent-srce --rename \
+ dpkg-divert --quiet --package ocsinventory-agent-cn --rename \
--divert /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm.divert \
/usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Hostname.pm
- dpkg-divert --quiet --package ocsinventory-agent-srce --rename \
+ dpkg-divert --quiet --package ocsinventory-agent-cn --rename \
--divert /usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm.divert \
/usr/share/perl5/Ocsinventory/Agent/Backend/OS/Generic/Packaging/Deb.pm
fi