+debhelper (1.2.81) unstable; urgency=low
+
+ * dh_link: fixed bug #40159 and added a regression test for it. It was
+ failing if it was given absolute filenames.
+
+ -- Joey Hess <joeyh@master.debian.org> Fri, 25 Jun 1999 10:12:44 -0700
+
debhelper (1.2.80) unstable; urgency=low
* Changed perl version detection.
.B \--init-script=scriptname
Use "scriptname" as for the filename the init script is installed as in
etc/init.d/ . This is useful if you need to have an init script with a name
-different from the package's name.
+different from the package's name. Note that if you use this parameter,
+dh_installinit will look to see if a file in the debian/ directory exists
+that looks like "scriptname" or "package.scriptname" and if so will install
+it as the inist script in preference to the files it normally installs. This
+feature is really only useful if you need a single package to install more
+than one init script.
.SH ENVIRONMENT
See
.BR debhelper (1)
$dest=pop @links;
$src=pop @links;
+ # Relivatize src and dest.
+ $src=~s:^/::;
+ $dest=~s:^/::;
+
# Make sure the directory the link will be in exists.
$basedir=Dh_Lib::dirname("$TMP/$dest");
if (! -e $basedir) {
# Figure out how much of a path $src and $dest
# share in common.
for ($x=0; $x<$#src_dirs && $src_dirs[$x] eq $dest_dirs[$x]; $x++) {}
-
# Build up the new src.
$src="";
for (1..$#dest_dirs - $x) {
#!/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
# ok, more complex relative links.
system("./dh_link","usr/lib/1","usr/bin/2");
ok("../lib/1",readlink("debian/tmp/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/tmp/usr/share/dfm/dfmext"));