mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Move /etc/bash_completion.d/pbuilder-dist/pbuilder-dist created in
pre-0.30 versions to /etc/bash_completion.d/pbuilder-dist in the preinst.
This commit is contained in:
commit
d6b98eae6e
5
debian/changelog
vendored
5
debian/changelog
vendored
@ -1,8 +1,9 @@
|
||||
ubuntu-dev-tools (0.59) UNRELEASED; urgency=low
|
||||
|
||||
* Changes go here.
|
||||
* Move /etc/bash_completion.d/pbuilder-dist/pbuilder-dist created in
|
||||
pre-0.30 versions to /etc/bash_completion.d/pbuilder-dist in the preinst.
|
||||
|
||||
-- Jonathan Davies <jpds@ubuntu.com> Mon, 19 Jan 2009 16:52:03 +0000
|
||||
-- Loic Minier <lool@dooz.org> Mon, 19 Jan 2009 18:02:55 +0100
|
||||
|
||||
ubuntu-dev-tools (0.58) jaunty; urgency=low
|
||||
|
||||
|
20
debian/ubuntu-dev-tools.preinst
vendored
Normal file
20
debian/ubuntu-dev-tools.preinst
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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#
|
||||
|
Loading…
x
Reference in New Issue
Block a user