[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#454688: python-package-should-be-section-python produces false positives



Package: lintian
Version: 1.23.38
Severity: normal
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

If there is a documentation package for python, it is usually called
python-foo-doc. However lintian now reports this as
python-package-should-be-section-python, but I think it should be in
section doc. Attached patch changes test behavior to work this way.

- -- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils            2.18.1~cvs20071027-1 The GNU assembler, linker and bina
ii  diffstat            1.45-2               produces graph of changes introduc
ii  dpkg-dev            1.14.12              package building tools for Debian
ii  file                4.21-3               Determines file type using "magic"
ii  gettext             0.16.1-2             GNU Internationalization utilities
ii  intltool-debian     0.35.0+20060710.1    Help i18n of RFC822 compliant conf
ii  libparse-debianchan 1.1.1-1              parse Debian changelogs and output
ii  man-db              2.5.0-4              on-line manual pager
ii  perl [libdigest-md5 5.8.8-12             Larry Wall's Practical Extraction 

lintian recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHWL1H3DVS6DbnVgQRAmnXAKC02+iBiniusX7QEZEB07lafHF0sACgrM+6
KPP5IlRtLETx1JVpa7j1Hlg=
=Zo6a
-----END PGP SIGNATURE-----
--- fields.orig	2007-12-07 12:22:42.000000000 +0900
+++ fields	2007-12-07 12:23:14.000000000 +0900
@@ -319,7 +319,7 @@
 		tag "doc-package-should-be-section-doc", $pkg;
 	    } elsif ($pkg =~ m{-perl$} && $parts[-1] ne "perl") {
 		tag "perl-package-should-be-section-perl", $pkg;
-	    } elsif ($pkg =~ m{^py} && $parts[-1] ne "python") {
+	    } elsif ($pkg =~ m{^py} && $pkg !~ m{-docs?$} && $parts[-1] ne "python") {
 		tag "python-package-should-be-section-python", $pkg;
 	    }
 	}

Reply to: