summaryrefslogtreecommitdiff
path: root/dh_link
diff options
context:
space:
mode:
authorjoey <joey>1999-08-17 05:08:37 +0000
committerjoey <joey>1999-08-17 05:08:37 +0000
commit31a6b97baf020c0bad249a47072694cd7bf3a7dd (patch)
tree27188490e15f4cb37e5c5e967ab385280e58b725 /dh_link
parent445640239aa47534554f20494ff969ef8be81ae4 (diff)
downloaddebhelper-31a6b97baf020c0bad249a47072694cd7bf3a7dd.tar.gz
r164: Initial Import
Diffstat (limited to 'dh_link')
-rwxr-xr-xdh_link8
1 files changed, 3 insertions, 5 deletions
diff --git a/dh_link b/dh_link
index 41dd736e..cc1b4954 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) {