Package: emacsen-common Version: 2.0.5 Severity: wishlist File: /usr/share/doc/emacsen-common/sample-package-remove-foo
In sample-package-remove-foo, the rmdir --ignore-fail-on-non-empty ${elc_dir} will error out if ${elc_dir} is already gone. I hoped that a remove script would quietly succeed if the things it wants to remove are already gone. elc_dir already gone would not happen normally, but may happen if a remove has been interrupted (so some flavours removed and others not yet), or of course if something else has made a mess. I have used "rmdir ... || true" since I'm happy to have the script succeed both when the directory is gone already or when it's not empty presumably due to the sysadmin having put something there. An alternative would be working in a "test -d $elc_dir" like for example /usr/lib/emacsen-common/packages/remove/dictionaries-common -- System Information: Debian Release: 7.0 APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-486 Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org