Followup-For: Bug #687463 Control: tag -1 pending patch Hi,
I just uploaded a NMU to DELAYED/2 that makes the ucf usage during postrm purge conditional. This should reach stretch just before the freeze. Andreas
diff -u ocsinventory-agent-2.0.5/debian/changelog ocsinventory-agent-2.0.5/debian/changelog --- ocsinventory-agent-2.0.5/debian/changelog +++ ocsinventory-agent-2.0.5/debian/changelog @@ -1,3 +1,10 @@ +ocsinventory-agent (2:2.0.5-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * postrm purge: Only run ucf if it is available. (Closes: #687463) + + -- Andreas Beckmann <a...@debian.org> Sun, 22 Jan 2017 00:00:41 +0100 + ocsinventory-agent (2:2.0.5-1.1) unstable; urgency=medium * Non-maintainer upload. diff -u ocsinventory-agent-2.0.5/debian/ocsinventory-agent.postrm ocsinventory-agent-2.0.5/debian/ocsinventory-agent.postrm --- ocsinventory-agent-2.0.5/debian/ocsinventory-agent.postrm +++ ocsinventory-agent-2.0.5/debian/ocsinventory-agent.postrm @@ -21,10 +21,12 @@ case "$1" in purge) - ucf --purge /etc/ocsinventory-client/ocsinv.conf - ucf --purge /etc/ocsinventory/ocsinventory-agent.cfg rm -f /etc/ocsinventory-client/ocsinv.conf rm -f /etc/ocsinventory/ocsinventory-agent.cfg + if which ucf >/dev/null; then + ucf --purge /etc/ocsinventory-client/ocsinv.conf + ucf --purge /etc/ocsinventory/ocsinventory-agent.cfg + fi rm -f /var/lib/ocsinventory-agent/ocsinv.adm rm -f /usr/share/ocsinventory-client/ocsinv.conf rm -f /usr/share/ocsinventory-client/ocsinv.adm