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

Bug#419461: [checks/scripts] Add maintainer-script-needs-depends-on-xml-core check



Package: lintian
Version: 1.23.29
Severity: wishlist
Tags: patch

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

I would like to request a template
maintainer-script-needs-depends-on-xml-core to check for an xml-core
dependency if the maintainer-script calls update-xmlcatalog. Missing
this dependency appeared several times (probably only for me :)), so I
would like to request this check. To add it, simply add a

  [ 'xml-core'             => '\bupdate-xmlcatalog\b' ],

to @depends_needed in /usr/share/lintian/checks/scripts and

  Tag: maintainer-script-needs-depends-on-xml-core
  Type: error
  Info: This script calls update-xmlcatalog, which comes from the xml-core
   package, but does not depend or pre-depend on xml-core.  Packages that call
   update-xmlcatalog need to depend on xml-core.  If you are using
   dh_installxmlcatalogs, add a dependency on ${misc:Depends} and
   dh_installxmlcatalogs will take care of this for you.

to /usr/share/lintian/checks/scripts.desc.

Just to prove, that it happens to miss the dependency (yes, shame on me,
both my faults):

http://bugs.debian.org/382576
http://bugs.debian.org/419419

Thanks and regards, Daniel


- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (850, 'unstable'), (700, 'testing'), (550, 'stable'), (110, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18.11 (PREEMPT)
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages lintian depends on:
ii  binutils               2.17-3            The GNU assembler, linker and bina
ii  diffstat               1.43-2            produces graph of changes introduc
ii  dpkg-dev               1.13.25           package building tools for Debian
ii  file                   4.20-4            Determines file type using "magic"
ii  gettext                0.16.1-1          GNU Internationalization utilities
ii  intltool-debian        0.35.0+20060710.1 Help i18n of RFC822 compliant conf
ii  libparse-debianchangel 1.0-1             parse Debian changelogs and output
ii  man-db                 2.4.4-2           The on-line manual pager
ii  perl [libdigest-md5-pe 5.8.8-7           Larry Wall's Practical Extraction 

lintian recommends no packages.

- -- no debconf information

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

iD8DBQFGIoQ9m0bx+wiPa4wRAh4DAJ458WDzGDPNsG3R4rrbYeZQ+XZZ9gCg2Nrz
SUnSHefVY3QdUpvLX/Ve/S4=
=EtLz
-----END PGP SIGNATURE-----



Reply to: