summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0fd2f07)
raw | patch | inline | side by side (parent: 0fd2f07)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 7 Jun 2010 22:16:53 +0000 (00:16 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 7 Jun 2010 22:16:53 +0000 (00:16 +0200) |
… when upgrading from versions << 4.10.0-1~ -- this is not handled by dpkg
according to policy 6.6.
Thanks to Joey Hess for reporting this!
Closes: #569268
according to policy 6.6.
Thanks to Joey Hess for reporting this!
Closes: #569268
debian/changelog | patch | blob | history | |
debian/collectd.postinst | patch | blob | history |
diff --git a/debian/changelog b/debian/changelog
index 963cbd81b60ae218cd5ebb68deb6a74c19177c40..9e9293e38c42935bdcadd3b84a5461709d7a2452 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
- Define (and pass to configure) $JAR.
- Added support for Renesas SH4 to the Java arch mapping; thanks to
Nobuhiro Iwamatsu for the patch (Closes: #564165).
+ * debian/collectd.postinst:
+ - Manually replace /usr/share/doc/collectd/examples/ with a symlink when
+ upgrading from versions << 4.10.0-1~ -- this is not handled by dpkg
+ according to policy 6.6; thanks to Joey Hess for reporting this
+ (Closes: #569268).
- -- Sebastian Harl <tokkee@debian.org> Thu, 03 Jun 2010 17:04:44 +0200
+ -- Sebastian Harl <tokkee@debian.org> Tue, 08 Jun 2010 00:14:50 +0200
collectd (4.9.1-2) unstable; urgency=low
index 8fe504880823c3baacc76207cd25e5adba672823..99bfabf4279d96d30892926100d747c0f516e403 100644 (file)
--- a/debian/collectd.postinst
+++ b/debian/collectd.postinst
fi
fi
+# replace the directory provided by older versions of the package with a
+# symlink; dpkg does not handle that according to policy 6.6
+if [ "$1" = "configure" ] \
+ && dpkg --compare-versions "$2" lt-nl "4.10.0-1~"; then
+ if [ -d "/usr/share/doc/collectd/examples" ]; then
+ ! rmdir /usr/share/doc/collectd/examples > /dev/null 2>&1 \
+ || ln -s ../collectd-core/examples \
+ /usr/share/doc/collectd/examples
+ fi
+fi
+
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.