]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_builddeb
r582: * Fix build with 077 umask. Closes: #187757
[debhelper.git] / dh_builddeb
index 54c4362fa8ae0cb9b8336b7a4d064ba31aec4ba3..3d9f9d86e88130aef220002e4edb421eb3f6b252 100755 (executable)
@@ -60,14 +60,15 @@ else {
 foreach my $package (@{$dh{DOPACKAGES}}) {
        my $tmp=tmpdir($package);
        if (exists $ENV{DH_ALWAYS_EXCLUDE} && length $ENV{DH_ALWAYS_EXCLUDE}) {
-               complex_doit("find $tmp -name $ENV{DH_ALWAYS_EXCLUDE} | xargs rm -rf");
+               complex_doit("find $tmp -name $_ | xargs rm -rf")
+                       foreach split(":", $ENV{DH_ALWAYS_EXCLUDE});
        }
        doit("dpkg-deb", @{$dh{U_PARAMS}}, "--build", $tmp, $dh{DESTDIR}.$dh{FILENAME});
 }
 
 =head1 SEE ALSO
 
-L<debhelper(1)>
+L<debhelper(7)>
 
 This program is a part of debhelper.