]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Remove openafs-fileserver doc symlink in preinst
authorRuss Allbery <rra@debian.org>
Thu, 3 Jan 2013 06:02:15 +0000 (22:02 -0800)
committerRuss Allbery <rra@debian.org>
Thu, 3 Jan 2013 06:02:15 +0000 (22:02 -0800)
* Remove the symlink from the openafs-fileserver doc directory to the
  openafs-client doc directory.  We used to install this symlink and
  share doc directories, but this stopped in 1.4.12+dfsg-1.  However,
  dpkg doesn't remove symlinks to a directory, so systems that had
  upgraded from the older package were overwriting openafs-client doc
  files with the openafs-fileserver versions.  Thanks, Andreas
  Beckmann.  (Closes: #694063)

debian/changelog
debian/openafs-fileserver.preinst [new file with mode: 0644]

index b10f54b39affa5cdb471c57738be9f4ad78bb964..266f30c3a68b3276a71219fa9402dbe68f7c802d 100644 (file)
@@ -18,7 +18,14 @@ openafs (1.6.2~pre2-1) UNRELEASED; urgency=low
     - Support newer glibc versions.
   * Fix server installation instructions in README.servers, which used the
     early demand-attach syntax before separate demand-attach binaries were
-    built.  (Closes: #693311)
+    built.  Thanks, Björn Torkelsson.  (Closes: #693311)
+  * Remove the symlink from the openafs-fileserver doc directory to the
+    openafs-client doc directory.  We used to install this symlink and
+    share doc directories, but this stopped in 1.4.12+dfsg-1.  However,
+    dpkg doesn't remove symlinks to a directory, so systems that had
+    upgraded from the older package were overwriting openafs-client doc
+    files with the openafs-fileserver versions.  Thanks, Andreas
+    Beckmann.  (Closes: #694063)
   * Switch to xz compression for the upstream tarball, Debian tarball, and
     binary packages.
   * Remove debian/import-upstream and change README.source to document
diff --git a/debian/openafs-fileserver.preinst b/debian/openafs-fileserver.preinst
new file mode 100644 (file)
index 0000000..ca67722
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+# lenny versions of openafs-fileserver symlinked the doc directory to
+# openafs-client.  This was changed in 1.4.12+dfsg-1, but the symlink was
+# never removed, and dpkg won't remove symlinks to a directory.  Belatedly
+# clean up so that we don't overwrite doc files in openafs-client.
+test ! -L /usr/share/doc/openafs-fileserver
+    || rm /usr/share/doc/openafs-fileserver
+
+#DEBHELPER#