diff options
-rwxr-xr-x | dgit | 9 | ||||
-rwxr-xr-x | tests/tests/quilt-include-binaries | 3 |
2 files changed, 10 insertions, 2 deletions
@@ -6246,8 +6246,15 @@ END $wrong->(f_ "forbidden path component '%s'", $ent) if grep { $_ eq $ent } '', '.', '..'; if (!@bpath) { # check first component + # dpkg-source doesn't like files in debian/ which it + # considers binary, so the user may have listed + # them. We should silently ignore this. #1026918. + if ($ent eq 'debian') { + no warnings qw(exiting); + next BFILE; + } $wrong->(f_ "path starts with '%s'", $ent) - if grep { $_ eq $ent } qw(debian .git); + if grep { $_ eq $ent } qw(.git); } push @bpath, $ent; $bpath_chk = join '/', @bpath; diff --git a/tests/tests/quilt-include-binaries b/tests/tests/quilt-include-binaries index c193e0b..74a0de9 100755 --- a/tests/tests/quilt-include-binaries +++ b/tests/tests/quilt-include-binaries @@ -25,6 +25,7 @@ debian/binfile ../bin-in-parent $tmp/bin-with-abs debian/../../bin-tricky-in-parent +.git/index bins/bin-via-link $tmp/ .. @@ -88,7 +89,7 @@ t-roundtrips for wrongness in \ "forbidden path component '..'" \ - "path starts with 'debian'" \ + "path starts with '.git'" \ ; do grep "$wrongness" ../build-source-out.$r done |