]> git.donarmstrong.com Git - debhelper.git/commitdiff
pass -N into DH_INTERNAL_OPTIONS
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 21 Mar 2009 01:24:30 +0000 (21:24 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 21 Mar 2009 01:24:30 +0000 (21:24 -0400)
I think I didn't do this before because it could result in
parseoptions() erroring because there were no packages to act on.
That is not going to be an error soon though, and it makes sense to
pass in the -N excludes.

dh

diff --git a/dh b/dh
index 498c7cff55162b207a8fadc66c02a1b016b4112b..8639ed074311b418b2d10b1cf04835491e2042c5 100755 (executable)
--- a/dh
+++ b/dh
@@ -443,6 +443,10 @@ sub run {
        my @exclude=@{shift()};
        my @options=@_;
        
+       # If some packages are excluded, add flags
+       # to prevent them from being acted on.
+       push @options, map { "-N$_" } @exclude;
+
        # Check for override targets in debian/rules and
        # run them instead of running the command directly.
        my $override_command;
@@ -454,11 +458,6 @@ sub run {
                $command="debian/rules";
                @options="override_".$override_command;
        }
-       else {
-               # If some packages are excluded, add flags
-               # to prevent them from being acted on.
-               push @options, map { "-N$_" } @exclude;
-       }
 
        # 3 space indent lines the command being run up under the 
        # sequence name after "dh ".