lintian: r114 - in trunk: checks debian man testset
Author: jeroen
Date: 2004-03-27 22:28:30 +0100 (Sat, 27 Mar 2004)
New Revision: 114
Modified:
trunk/checks/huge-usr-share
trunk/checks/huge-usr-share.desc
trunk/debian/changelog
trunk/man/lintian.1
trunk/testset/info_tags.binary
trunk/testset/tags.binary
Log:
Merge 1.22.12 changes that happened while it was branched into trunk
(Being: big-usr-share is informative, manpage tweaks, spelling error in
variable names and comments of huge-usr-share fixed)
Modified: trunk/checks/huge-usr-share
===================================================================
--- trunk/checks/huge-usr-share 2004-03-27 20:48:18 UTC (rev 113)
+++ trunk/checks/huge-usr-share 2004-03-27 21:28:30 UTC (rev 114)
@@ -25,11 +25,11 @@
my $pkg = shift;
my $type = shift;
-# Treshold in kB of /usr/share to trigger this warning
+# Threshold in kB of /usr/share to trigger this warning
# Consider that the changelog alone can be quite big, and cannot be moved away
-my $TRESHOLD_SIZE_SOFT = 1024;
-my $TRESHOLD_SIZE_HARD = 2048;
-my $TRESHOLD_PERC = 50;
+my $THRESHOLD_SIZE_SOFT = 1024;
+my $THRESHOLD_SIZE_HARD = 2048;
+my $THRESHOLD_PERC = 50;
my $arch;
@@ -50,11 +50,11 @@
$size_usrshare =~ s/\t.*//;
$size_usrshare = int $size_usrshare;
-if ($size_usrshare > $TRESHOLD_SIZE_SOFT) {
+if ($size_usrshare > $THRESHOLD_SIZE_SOFT) {
my $perc = int (100 * $size_usrshare / $size);
- if (($size_usrshare > $TRESHOLD_SIZE_HARD)
- || ($perc > $TRESHOLD_PERC)) {
- print "W: $pkg $type: arch-dep-package-has-big-usr-share ${size_usrshare}kB $perc%\n";
+ if (($size_usrshare > $THRESHOLD_SIZE_HARD)
+ || ($perc > $THRESHOLD_PERC)) {
+ print "I: $pkg $type: arch-dep-package-has-big-usr-share ${size_usrshare}kB $perc%\n";
}
}
Modified: trunk/checks/huge-usr-share.desc
===================================================================
--- trunk/checks/huge-usr-share.desc 2004-03-27 20:48:18 UTC (rev 113)
+++ trunk/checks/huge-usr-share.desc 2004-03-27 21:28:30 UTC (rev 114)
@@ -8,7 +8,7 @@
have a significantly big /usr/share
Tag: arch-dep-package-has-big-usr-share
-Type: warning
+Type: info
Info: The package has a significant amount of architecture-independent data in
/usr/share, while it is an architecture-dependent package.
This is wasteful of mirror space and bandwidth, as we then end up with
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-03-27 20:48:18 UTC (rev 113)
+++ trunk/debian/changelog 2004-03-27 21:28:30 UTC (rev 114)
@@ -82,8 +82,9 @@
there is no binary perl file at all in the package, since this
reflects the way the Installer module behaves (Closes: #199898)
* checks/huge-usr-share:
- + [JvW] Check for a big /usr/share (currently 250kB) in arch-dependent
- packages. Thanks Steve McIntyre for the idea. (Closes: #232849)
+ + [JvW] Check for a big /usr/share (currently 1-2MB will trigger it) in
+ arch-dependent packages. Currently just I:. Thanks Steve McIntyre for
+ the idea. (Closes: #232849)
* checks/menus{,.desc}:
+ [FL] Remove non-exectuable-in-etc-menu-methods as it doesn't
reflects the current menu manual (Closes: #229460)
Modified: trunk/man/lintian.1
===================================================================
--- trunk/man/lintian.1 2004-03-27 20:48:18 UTC (rev 113)
+++ trunk/man/lintian.1 2004-03-27 21:28:30 UTC (rev 114)
@@ -36,7 +36,7 @@
It uses an archive directory, called \fIlaboratory\fR, in which it
stores information about the packages it examines. It can keep this
information between multiple invocations in order to avoid repeating
-expensive data\-collection operations.
+expensive data-collection operations.
.sp
There are three ways to specify binary or source packages for Lintian
to process: by file name, by package name, or by naming a
@@ -149,7 +149,7 @@
Output tags that have been overriden
.TP
-.BR \-U " info1,info2,..., " \-\-unpack-info " info1,info2,..."
+.BR \-U " info1,info2,..., " \-\-unpack\-info " info1,info2,..."
Collect information info1, info2, etc. even if these are not
required by the checks.
@@ -399,7 +399,7 @@
.TP
.B huge\-usr\-share (hus)
-Checks whether an architecture\-dependent package does
+Checks whether an architecture-dependent package does
have a significantly big \fB/usr/share\fR. Big amounts of
architecture independent data in architecture dependent
packages waste space on the mirrors.
@@ -529,7 +529,7 @@
.TP
.B objdump\-info
Collect the output of the
-.BR obj\-dump (1)
+.BR objdump (1)
utility for each file in a binary package.
.TP
@@ -589,7 +589,7 @@
Policy violations detected.
.TP
.B 2
-Lintian run\-time error. An error message is sent to stderr.
+Lintian run-time error. An error message is sent to stderr.
.SH USAGE
Examples:
Modified: trunk/testset/info_tags.binary
===================================================================
--- trunk/testset/info_tags.binary 2004-03-27 20:48:18 UTC (rev 113)
+++ trunk/testset/info_tags.binary 2004-03-27 21:28:30 UTC (rev 114)
@@ -25,7 +25,7 @@
E: binary: binary-without-manpage hello-static
E: binary: binary-without-manpage hello.static
E: binary: binary-without-manpage static-hello
-W: binary: arch-dep-package-has-big-usr-share 1540kB 55%
+I: binary: arch-dep-package-has-big-usr-share 1540kB 55%
N:
N: The package has a significant amount of architecture-independent data
N: in /usr/share, while it is an architecture-dependent package. This is
Modified: trunk/testset/tags.binary
===================================================================
--- trunk/testset/tags.binary 2004-03-27 20:48:18 UTC (rev 113)
+++ trunk/testset/tags.binary 2004-03-27 21:28:30 UTC (rev 114)
@@ -3,7 +3,7 @@
E: binary: binary-without-manpage hello-static
E: binary: binary-without-manpage hello.static
E: binary: binary-without-manpage static-hello
-W: binary: arch-dep-package-has-big-usr-share 1540kB 55%
+I: binary: arch-dep-package-has-big-usr-share 1540kB 55%
W: binary: package-contains-upstream-install-documentation usr/share/doc/binary/INSTALL
E: binary: postinst-does-not-call-updatemenus usr/lib/menu/binary
E: binary: postrm-does-not-call-updatemenus usr/lib/menu/binary
Reply to: