Skip to content
Snippets Groups Projects
Commit 986636c5 authored by Matthias Klose's avatar Matthias Klose
Browse files

package version python-defaults-2.4.4-5

parent d20f6c5f
No related branches found
No related tags found
No related merge requests found
python-defaults (2.4.4-5) unstable; urgency=low
* Run the python2.5 rtinstall hooks, if python2.5 was already
installed as an unsupported version.
-- Matthias Klose <doko@debian.org> Wed, 16 May 2007 21:19:51 +0200
python-defaults (2.4.4-4) unstable; urgency=low
* New package python-all-dbg.
......
......@@ -42,6 +42,22 @@ case "$1" in
done
[ -z "$errors" ] || exit 5
fi
if [ -f /var/lib/python/python2.5_already_installed ] \
&& [ ! -f /var/lib/python/python2.5_installed ]
then
if [ "$DEBIAN_FRONTEND" != noninteractive ]; then
echo "Linking and byte-compiling packages for runtime python2.5..."
fi
oldversion=$(cat /var/lib/python/python2.5_already_installed)
newversion=$(dpkg -s python2.5-minimal | awk '/^Version:/ {print $2}')
for hook in /usr/share/python/runtime.d/*.rtinstall; do
[ -x $hook ] || continue
$hook rtinstall python2.5 "$oldversion" "$newversion"
done
fi
rm -f /var/lib/python/python2.5_already_installed
rmdir --ignore-fail-on-non-empty /var/lib/python 2>/dev/null
esac
#DEBHELPER#
......@@ -29,6 +29,14 @@ case "$1" in
done
[ -z "$errors" ] || exit 3
fi
# 2.4.4-5 is the first version, which adds python2.5 as supported
# version; need to run an rtinstall python2.5 in the postinst.
if dpkg --compare-versions $2 lt 2.4.4-5 && [ -x /usr/bin/python2.5 ]; then
version=$(dpkg -s python2.5-minimal | awk '/^Version:/ {print $2}')
mkdir -p /var/lib/python
echo "$version" > /var/lib/python/python2.5_already_installed
fi
esac
#DEBHELPER#
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment