Drop preinst (pbuilder-dist bash_completion handling), it is not required

for any current upgrade path on Debian or Ubuntu.
This commit is contained in:
Stefano Rivera 2010-12-20 11:30:38 +02:00
parent 9ea8f738fc
commit 54f082b6e8
2 changed files with 3 additions and 21 deletions

4
debian/changelog vendored
View File

@ -2,8 +2,10 @@ ubuntu-dev-tools (0.109) UNRELEASED; urgency=low
* Convert debian/copyright to DEP5, make sure all scripts are listed
(LP: #692003)
* Drop preinst (pbuilder-dist bash_completion handling), it is not required
for any current upgrade path on Debian or Ubuntu.
-- Stefano Rivera <stefanor@ubuntu.com> Sun, 19 Dec 2010 02:26:12 +0200
-- Stefano Rivera <stefanor@ubuntu.com> Mon, 20 Dec 2010 11:29:02 +0200
ubuntu-dev-tools (0.108) experimental; urgency=low

View File

@ -1,20 +0,0 @@
#!/bin/sh
set -e
if [ -e /etc/bash_completion.d/pbuilder-dist/pbuilder-dist ]; then
tmp_file="$(mktemp /etc/bash_completion.d/pbuilder-dist.XXXXXX)"
mv -fv /etc/bash_completion.d/pbuilder-dist/pbuilder-dist \
"$tmp_file"
rmdir --ignore-fail-on-non-empty /etc/bash_completion.d/pbuilder-dist
# dir non-empty
if [ -d /etc/bash_completion.d/pbuilder-dist ]; then
echo "W: /etc/bash_completion.d/pbuilder-dist not empty; moving /etc/bash_completion.d/pbuilder-dist out of the way"
mv -fv /etc/bash_completion.d/pbuilder-dist /etc/bash_completion.d/pbuilder-dist.dpkg-disabled
fi
mv -fv "$tmp_file" /etc/bash_completion.d/pbuilder-dist
fi
#DEBHELPER#