Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
sub check_not_dirty () {
my @forbid = qw(local-options local-patch-header);
sub check_not_dirty () {
my @forbid = qw(local-options local-patch-header);
+ @forbid = map { "debian/source/$_" } @forbid;
foreach my $f (@forbid) {
foreach my $f (@forbid) {
- if (stat_exists "debian/source/$f") {
- fail f_ "git tree contains debian/source/%s", $f;
+ if (stat_exists $f) {
+ fail f_ "git tree contains %s", $f;