Commit 5118feb2 authored by Joey Hess's avatar Joey Hess

Work around dpkg's failure to replace directory with symlink on upgrade.

Only tasksel-data was affected. Closes: #687858

The code used is based on libncurses5-dev.postinst, which is amoung the
more robust versions I could find.
parent d5333d92
tasksel (3.14) UNRELEASED; urgency=low
* Change default desktop to xfce.
* Work around dpkg's failure to replace directory with symlink on upgrade.
Only tasksel-data was affected. Closes: #687858
-- Joey Hess <joeyh@debian.org> Mon, 03 Sep 2012 09:45:47 -0400
......
#!/bin/sh
set -e
#DEBHELPER#
# directory turned into symlink; give dpkg a hand.
if dpkg --compare-versions "$2" lt 3.14; then
if [ ! -L /usr/share/doc/tasksel-data ] && \
[ -d /usr/share/doc/tasksel-data ] && \
rmdir /usr/share/doc/tasksel-data 2>/dev/null; then
ln -sf tasksel /usr/share/doc/tasksel-data
fi
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment