'debian_version_4_1_36'.
+++ /dev/null
-if [ "$1" = configure ] && which install-docs >/dev/null 2>&1; then
- install-docs -i /usr/share/doc-base/#DOC-ID#
-fi
+++ /dev/null
-if [ "$1" = "configure" ] && [ -x /usr/lib/emacsen-common/emacs-package-install ]
-then
- /usr/lib/emacsen-common/emacs-package-install #PACKAGE#
-fi
+++ /dev/null
-if [ "$1" = "configure" ]; then
- install-info --quiet --section "#SECTION#" "#SECTION#" #FILE#
-fi
+++ /dev/null
-if [ "$1" = "configure" ]; then
- install-info --quiet #FILE#
-fi
+++ /dev/null
-if [ -x "/etc/init.d/#SCRIPT#" ]; then
- update-rc.d #SCRIPT# #INITPARMS# >/dev/null
- if [ -x /usr/sbin/invoke-rc.d ]; then
- invoke-rc.d #SCRIPT# start
- else
- /etc/init.d/#SCRIPT# start
- fi
-fi
+++ /dev/null
-if [ -x "/etc/init.d/#SCRIPT#" ]; then
- update-rc.d #SCRIPT# #INITPARMS# >/dev/null
-fi
+++ /dev/null
-if [ "$1" = "configure" ]; then
- ldconfig
-fi
+++ /dev/null
-if [ "$1" = "configure" ] && [ -x /usr/bin/update-menus ]; then update-menus ; fi
+++ /dev/null
-inst=/etc/menu-methods/#PACKAGE#
-if [ -x /usr/bin/update-menus ] && [ -f $inst ] ; then
- chmod a+x $inst
- update-menus
-fi
+++ /dev/null
-if [ "$1" = "configure" ] && [ -x /usr/sbin/update-mime ]; then update-mime; fi
+++ /dev/null
-if [ "$1" = "configure" ] && [ -x /sbin/update-modules ]; then
- update-modules >/dev/null
-fi
+++ /dev/null
-PYTHON=#PYVER#
-if which $PYTHON >/dev/null 2>&1; then
- DIRLIST="#DIRLIST#"
- for i in $DIRLIST ; do
- $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i
- $PYTHON /usr/lib/$PYTHON/compileall.py -q $i
- done
-fi
+++ /dev/null
-if [ "$1" = "configure" ]; then
- rm -f #CENTRALCAT#
- for ordcat in #ORDCATS#; do
- update-catalog --quiet --add #CENTRALCAT# ${ordcat}
- done
- update-catalog --quiet --add --super #CENTRALCAT#
-fi
+++ /dev/null
-if [ "$1" = "configure" ]; then
- if which suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then
- suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS#
- elif [ -e /#FILE# ]; then
- chown #OWNER#.#GROUP# /#FILE#
- chmod #PERMS# /#FILE#
- fi
-fi
+++ /dev/null
-if [ "$1" = "configure" ]; then
- update-alternatives --install /usr/bin/x-window-manager \
- x-window-manager #WM# #PRIORITY#
-fi
+++ /dev/null
-if which update-fonts-dir >/dev/null 2>&1; then
- #CMDS#
-fi
+++ /dev/null
-if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
- . /usr/share/debconf/confmodule
- db_purge
-fi
+++ /dev/null
-if [ "$1" = "remove" ]; then
- ldconfig
-fi
+++ /dev/null
-if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
+++ /dev/null
-inst=/etc/menu-methods/#PACKAGE#
-if [ "$1" = "remove" ] && [ -f "$inst" ]; then chmod a-x $inst ; fi
-if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
+++ /dev/null
-if which update-mime >/dev/null 2>&1; then update-mime; fi
+++ /dev/null
-if [ -x /sbin/update-modules ]; then
- update-modules >/dev/null
-fi
+++ /dev/null
-if [ "$1" = "purge" ]; then
- rm -f #CENTRALCAT# #CENTRALCAT#.old
-fi
+++ /dev/null
-if [ "$1" = remove ] && [ -e /etc/suid.conf ] && \
- which suidunregister >/dev/null 2>&1; then
- suidunregister -s #PACKAGE# /#FILE#
-fi
+++ /dev/null
-if [ "$1" != "upgrade" ] && [ -x /usr/sbin/update-fonts-dir ]; then
-#CMDS#
-fi
+++ /dev/null
-if [ "$1" = remove ] || [ "$1" = upgrade ] && \
- which install-docs >/dev/null 2>&1; then
- install-docs -r #DOC-ID#
-fi
+++ /dev/null
-if [ -x /usr/lib/emacsen-common/emacs-package-remove ] ; then
- /usr/lib/emacsen-common/emacs-package-remove #PACKAGE#
-fi
+++ /dev/null
-if [ -x "/etc/init.d/#SCRIPT#" ]; then
- if [ -x /usr/sbin/invoke-rc.d ] ; then
- invoke-rc.d #SCRIPT# stop
- else
- /etc/init.d/#SCRIPT# stop
- fi
-fi
+++ /dev/null
-if [ -x "/etc/init.d/#SCRIPT#" ] && [ "$1" = remove ]; then
- if [ -x /usr/sbin/invoke-rc.d ] ; then
- invoke-rc.d #SCRIPT# stop
- else
- /etc/init.d/#SCRIPT# stop
- fi
-fi
+++ /dev/null
-if [ "$1" = remove ]; then
- dpkg -L #PACKAGE# |
- awk '$0~/\.py$/ {print $0"c\n" $0"o"}' |
- xargs rm -f >&2
-fi
+++ /dev/null
-if [ "$1" = "remove" ]; then
- update-catalog --quiet --remove --super #CENTRALCAT#
-fi
+++ /dev/null
-if [ "$1" = "remove" ]; then
- update-alternatives --remove x-window-manager #WM#
-fi
#!/usr/bin/perl
use Test;
-plan(tests => 3);
+plan(tests => 4);
# It used to not make absolute links in this situation, and it should.
# #37774
system("./dh_link","etc/foo","usr/lib/bar");
-ok("/etc/foo",readlink("debian/tmp/usr/lib/bar"));
+ok("/etc/foo",readlink("debian/debhelper/usr/lib/bar"));
# let's make sure it makes simple relative links ok.
system("./dh_link","usr/bin/foo","usr/bin/bar");
-ok("foo",readlink("debian/tmp/usr/bin/bar"));
+ok("foo",readlink("debian/debhelper/usr/bin/bar"));
# ok, more complex relative links.
system("./dh_link","usr/lib/1","usr/bin/2");
-ok("../lib/1",readlink("debian/tmp/usr/bin/2"));
+ok("../lib/1",readlink("debian/debhelper/usr/bin/2"));
+
+# this was bug #40159. Absolute links passes to dh_link.
+system("./dh_link","/etc/X11/dfm/system.dfmext","usr/share/dfm/dfmext");
+ok("/etc/X11/dfm/system.dfmext",readlink("debian/debhelper/usr/share/dfm/dfmext"));