From: Antonio Ospite Date: Sat, 9 Jan 2016 14:36:28 +0000 (+0100) Subject: debian/postrm: remove /lib/firmware/ if it's empty X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/commitdiff_plain/8f62cc9e2d0024d7bc47e5b2cf71c6b6d58ad4aa debian/postrm: remove /lib/firmware/ if it's empty This fixes a warning in piuparts: there are cases when this package is the only installed one to use /lib/firmware. --- diff --git a/debian/postrm b/debian/postrm index eb8e315..c200457 100644 --- a/debian/postrm +++ b/debian/postrm @@ -8,6 +8,7 @@ set -e case "$1" in purge) rm -rf /lib/firmware/kinect + rmdir --ignore-fail-on-non-empty --parents /lib/firmware/ || true if [ -e /usr/share/debconf/confmodule ]; then