debian/postrm: remove /lib/firmware/ if it's empty
authorAntonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 14:36:28 +0000 (15:36 +0100)
committerAntonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 14:36:28 +0000 (15:36 +0100)
This fixes a warning in piuparts: there are cases when this package is
the only installed one to use /lib/firmware.

debian/postrm

index eb8e315..c200457 100644 (file)
@@ -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