]> git.donarmstrong.com Git - debhelper.git/commitdiff
r590: * dh_install: recalculate automatic $dest eash time through the glob loop.
authorjoey <joey>
Mon, 16 Jun 2003 18:10:38 +0000 (18:10 +0000)
committerjoey <joey>
Mon, 16 Jun 2003 18:10:38 +0000 (18:10 +0000)
     It might change if there are multiple wildcards Closes: #196344

debian/changelog
dh_install

index 20fd27bd7afb5bf4fd4aa75ce61299e30ad43a30..b7913c61fd72ae829a6ab5899e2aaafb48e936de 100644 (file)
@@ -1,3 +1,10 @@
+debhelper (4.1.47) unstable; urgency=low
+
+  * dh_install: recalculate automatic $dest eash time through the glob loop.
+    It might change if there are multiple wildcards Closes: #196344
+
+ -- Joey Hess <joeyh@debian.org>  Mon, 16 Jun 2003 13:35:27 -0400
+
 debhelper (4.1.46) unstable; urgency=low
 
   * Added dh_scrollkeeper, by Ross Burton.
index c37b9d3587978aeb1fcaba8cf39c6ba00bb2e2f4..5dff46268fa775889cd3d312d0c32dbafe29266b 100755 (executable)
@@ -127,6 +127,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
        
        foreach my $set (@install) {
                my $dest;
+               my $tmpdest=0;
                
                if (! defined $dh{AUTODEST} && @$set > 1) {
                        $dest=pop @$set;
@@ -144,6 +145,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                                }
                                $dest=~s/^(.*\/)?\Q$strip\E//;
                                $dest=dirname($dest);
+                               $tmpdest=1;
                        }
                        
                        # Make sure the destination directory exists.
@@ -174,6 +176,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                        else {
                                doit("cp", "-a", $src, "$tmp/$dest/");
                        }
+
+                       if ($tmpdest) {
+                               $dest=undef;
+                       }
                }
        }
 }