diff options
author | David Paleino <dapal@debian.org> | 2011-04-06 19:20:39 +0200 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2011-04-06 21:33:23 +0200 |
commit | d93bd9fc6119fef6d4c62812db63e93014f86581 (patch) | |
tree | 8d091baa0bae7f8452904353a0b9614801c5813c /debian/postrm | |
parent | 95a5526031d9c8898f969d98482d894f04585430 (diff) | |
download | bash-completion-d93bd9fc6119fef6d4c62812db63e93014f86581.tar.gz |
Remove old conffiles, using dpkg-maintscript-helper
Diffstat (limited to 'debian/postrm')
-rw-r--r-- | debian/postrm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/postrm b/debian/postrm index a08e9e98..18eb69f7 100644 --- a/debian/postrm +++ b/debian/postrm @@ -1,10 +1,14 @@ -#!/bin/sh +#!/bin/bash set -e case "$1" in purge) rm -f /etc/bash_completion + # let's remove old bash-completion conffiles + for f in $(find /etc/bash_completion.d/ -type f -name "*.dpkg-*"); do + dpkg-maintscript-helper rm_conffile ${f%.dpkg-*} 1:1.3-1 -- "$@" + done ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; |