From: joey Date: Tue, 17 Aug 1999 05:08:37 +0000 (+0000) Subject: r164: Initial Import X-Git-Tag: debian_version_0_1~77 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=31a6b97baf020c0bad249a47072694cd7bf3a7dd;p=debhelper.git r164: Initial Import --- diff --git a/debian/changelog b/debian/changelog index 8f95215..83977c3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debhelper (1.2.28) unstable; urgency=low + + * dh_link: fixed bug that prevent multiple links to the same source from + being made. (#23255) + + -- Joey Hess Sun, 24 Jan 1999 19:46:33 -0800 + debhelper (1.2.27) unstable; urgency=low * autoscripts/*menu*: "test", not "text"! diff --git a/dh_link b/dh_link index 41dd736..cc1b495 100755 --- a/dh_link +++ b/dh_link @@ -31,12 +31,10 @@ foreach $PACKAGE (@{$dh{DOPACKAGES}}) { error("parameters list a link without a destination."); } - # Now I'd prefer to work with a hash. - %links=@links; + while (@links) { + $dest=pop @links; + $src=pop @links; - foreach $src (keys %links) { - $dest=$links{$src}; - # Make sure the directory the link will be in exists. $basedir=Dh_Lib::dirname("$TMP/$dest"); if (! -e $basedir) {