[SCM] Debian package checker branch, master, updated. 2.2.13-21-g4c28b88
The following commit has been merged in the master branch:
commit d5e03983886d417a76d1093744a914a285630984
Author: Russ Allbery <rra@debian.org>
Date: Fri Jul 24 23:16:37 2009 -0700
Tweak check for doc-base registration to exclude changelog and README
Exclude changelog.html.gz from requiring doc-base registration since it
has a special place in Policy and may not be regular documentation.
Also exclude README files in HTML -- this is iffier, and maybe they
should be registered, but a lot of them are small and insignificant and
I suspect maintainers aren't going to want to register all of them.
diff --git a/checks/menus b/checks/menus
index a4574f7..b199250 100644
--- a/checks/menus
+++ b/checks/menus
@@ -146,8 +146,11 @@ for my $file (sort keys %{$info->index}) {
unless $menumethod_includes_menu_h or $pkg eq 'menu';
}
# package doc dir?
- elsif ( $file =~ m,^usr/share/doc/.+\.(?:html|pdf)(?:\.gz)?$, ) {
- $documentation = 1;
+ elsif ($file =~ m,^usr/share/doc/(.+\.(?:html|pdf))(?:\.gz)?$,) {
+ my $name = $1;
+ unless ($name =~ /^changelog\.html$/ or $name =~ /^README[.-]/) {
+ $documentation = 1;
+ }
}
}
}
--
Debian package checker
Reply to: