user man...@packages.debian.org usertags 558804 target-2.6.0 tags 558804 fixed-upstream thanks
On Mon, Nov 30, 2009 at 07:01:06PM +0100, Holger Levsen wrote: > On Sonntag, 29. November 2009, Colin Watson wrote: > > It makes sense for mandb to observe that a hierarchy of manual pages has > > gone away entirely (e.g. no more /usr/share/man/pt) and remove the > > corresponding database. Could somebody file a bug on man-db for this, or > > reassign/clone an existing bug? I think I've got this sorted out now for man-db 2.6.0, when I release that. Sat Jan 8 18:14:18 GMT 2011 Colin Watson <cjwat...@debian.org> Remove obsolete cat* subdirectories as well as NLS subdirectories. * src/mandb.c (process_manpath): Store the manpath in tried_catdirs along with whether it has been seen. (tried_catdirs_free): New function. (purge_catdir): Improve message. (purge_catsubdirs): New function. (purge_catdirs): Adjust tried_catdirs handling. Call purge_catsubdirs for both top-level catdirs and NLS catdirs. (main): Set tried_catdirs free function to tried_catdirs_free. * NEWS: Document this. Sat Jan 8 11:42:13 GMT 2011 Colin Watson <cjwat...@debian.org> Remove obsolete NLS subdirectories of cat directories (Debian bug #558804). * lib/hashtable.c (hashtable_iterate): New function. * lib/hashtable.h (hashtable_iterate): Add prototype. * lib/util.c (remove_directory): Add recurse parameter. Add missing closedir calls. * include/manconfig.h.in (remove_directory): Update prototype. * src/man.c (format_display): Update remove_directory callers. * src/mandb.c (process_manpath): Add catpath to tried_catpath hash. Check that manpath exists and is a directory here rather than in the caller. (is_lang_dir, purge_catdir, purge_catdirs): New functions. (main): Create and free tried_catdirs. Move manpath stat checks to process_manpath. Call purge_catdirs after all manpath entries have been processed. * NEWS: Document this. Thanks, -- Colin Watson [cjwat...@debian.org] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org