mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 16:11:15 +00:00
- debian/control: build-depend on python-support instead of pycentral, also remove unneeded XB-Python-Version field from binary stanza. - debian/rules: set DEB_PYTHON_SYSTEM to pysupport. - ubuntu-dev-tools.preinst: remove stale pycentral files on upgrades.
30 lines
965 B
Bash
30 lines
965 B
Bash
#!/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
|
|
|
|
# Remove stale pycentral files on upgrades.
|
|
# This can be removed after the next LTS (likely 10.04) is released.
|
|
if [ "$1" = upgrade ]
|
|
then
|
|
if dpkg --compare-versions "$2" lt "0.76" ; then
|
|
pycentral pkgremove ubuntu-dev-tools
|
|
fi
|
|
fi
|
|
|
|
#DEBHELPER#
|
|
|