Bug#254420: lintian: False error report
Package: lintian
Version: 1.23.0
Severity: normal
This is what lintian reports:
,----[ Lintian Error Report ]
| E: tome: postinst-does-not-call-updatemenus usr/lib/menu/tome
| N:
| N: Since the package installs a file in either /usr/lib/menu or
| N: /etc/menu-methods, the package should probably call the update-menus
| N: command in it's postinst script.
| N:
| N: For example, use the following code in your maintainer script:
| N: if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
| N:
| E: tome: postrm-does-not-call-updatemenus usr/lib/menu/tome
| N:
| N: Since the package installs a file in either /usr/lib/menu or
| N: /etc/menu-methods, the package should probably call the update-menus
| N: command in it's postrm script.
| N:
| N: For example, use the following code in your maintainer script:
| N: if [ -x /usr/bin/update-menus ] ; then update-menus ; fi
| N:
`----
,----[ Excerpt from postinst ]
| # Ensure the menu system is updated
| [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
`----
,----[ Excerpt from postrm ]
| # Ensure the menu system is updated
| [ ! -x /usr/bin/update-menus ] || /usr/bin/update-menus
`----
manoj
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.6
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (ignored: LC_ALL set to en_US.UTF-8)
Versions of packages lintian depends on:
ii binutils 2.14.90.0.7-8 The GNU assembler, linker and bina
ii diffstat 1.34-1 produces graph of changes introduc
ii file 4.09-1 Determines file type using "magic"
ii man-db 2.4.2-16 The on-line manual pager
ii perl 5.8.4-2 Larry Wall's Practical Extraction
-- no debconf information
--
Violence is the last refuge of the incompetent. Salvor Hardin
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: