]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh: rules function joins array argument
authorRoger Leigh <rleigh@debian.org>
Tue, 14 Jun 2011 18:30:59 +0000 (19:30 +0100)
committerJoey Hess <joey@kitenet.net>
Tue, 14 Jun 2011 20:06:40 +0000 (16:06 -0400)
Appending @_ to a string appends the array length rather than
the array contents, so join with separating whitespace.

dh

diff --git a/dh b/dh
index 2eda3353fab9d0d969e5a243a78b98e9fe8b97c5..8d8c920a18d69e67854a8aa299098a4926e987d2 100755 (executable)
--- a/dh
+++ b/dh
@@ -801,7 +801,7 @@ sub rules_target {
 }
 
 sub rules {
-       return "debian/rules ".@_;
+       return "debian/rules ".join(" ", @_);
 }
 
 {