Uncommented the dh_link -i command so that ion3-dev.links will be processed, replacing the removed invocation that created the doc link as well.
+ion3 (20070506-2) unstable; urgency=low
+
+ * Applied upstream version check to upgrades as well as first
+ installation
+ * Restored links in ion3-dev - closes: #425287
+
+ -- Ben Hutchings <ben@decadent.org.uk> Sun, 20 May 2007 19:45:37 +0100
+
ion3 (20070506-1) unstable; urgency=low
* Per Olofsson retired as co-maintainer
. /usr/share/debconf/confmodule
UPSTREAM_VERSION=
+DEBIAN_VERSION=
-if [ "$1" = configure -a "$2" = "" ]; then
- # Installing for the first time (or after a purge).
+if [ "$1" = configure ] \
+ && dpkg --compare-versions "$2" lt "$DEBIAN_VERSION"; then
+ # Installing for the first time or upgrading.
# To comply with the Ion trademark licence terms, we must ensure
# that this version is up-to-date or that the user acknowledges
# it is not. I freely admit that this is a horrible abuse of
INSTDIR := debian/$(PACKAGE)
INSTDIR_DEV := debian/$(PACKAGE_DEV)
INSTDIR_DOC := debian/$(PACKAGE_DOC)
-UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -r 's/^Version: ([0-9]*:)?(.*)-[^-]*$$/\2/; t; d')
+DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -r 's/^Version: //; t; d')
+UPSTREAM_VERSION := $(shell echo $(DEBIAN_VERSION) | sed -r 's/^[0-9]*://; s/-[^-]*$$//')
doc-orig:
cp -R doc doc-orig
# dh_installinfo -i
# dh_undocumented -i
# dh_installman -i
-# dh_link -i
+ dh_link -i
# dh_strip -i
dh_compress -i
dh_fixperms -i
# dh_python -a
# dh_makeshlibs -a
dh_installdeb -a
- sed -i 's/^UPSTREAM_VERSION=/UPSTREAM_VERSION=$(UPSTREAM_VERSION)/' \
+ sed -i 's/^DEBIAN_VERSION=/&$(DEBIAN_VERSION)/; s/^UPSTREAM_VERSION=/&$(UPSTREAM_VERSION)/' \
debian/ion3/DEBIAN/postinst
dh_shlibdeps -a
dh_gencontrol -a