Browse Source

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.
tags/3.14
Joey Hess 8 years ago
parent
commit
5118feb257
2 changed files with 14 additions and 0 deletions
  1. +2
    -0
      debian/changelog
  2. +12
    -0
      debian/tasksel-data.postinst

+ 2
- 0
debian/changelog View File

@@ -1,6 +1,8 @@
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



+ 12
- 0
debian/tasksel-data.postinst View File

@@ -0,0 +1,12 @@
#!/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

Loading…
Cancel
Save