user [EMAIL PROTECTED]
usertags 496172 target-2.5.4
tags 496172 fixed-upstream
thanks

On Fri, Aug 22, 2008 at 11:55:32PM -0700, Ian Zimmerman wrote:
> Some manpages in section 1 (and possibly other sections, too lazy to check 
> now)
> are displayed twice, ie. man -a --debug gac produces the output found at 
> 
> http://primate.net/~itz/man-out
> 
> The gac program and manpage are in the gap package.
> Some others definitely do not behave this way, ie. man -a ls works as 
> expected.
> This is not new, but finally the cup of frustration run over ...

This was caused by gac(1) calling itself "GAC" (capitalised) in its NAME
section, which produced an extra reference in man-db's database, and it
didn't notice the duplication when determining its list of candidate
pages to display.

I just fixed this upstream as part of fixing bug #389762:

Mon Dec  8 10:08:45 GMT 2008  Colin Watson  <[EMAIL PROTECTED]>

        Improve sorting and de-duplication of manual page candidates (Debian
        bugs #389762 and #496172).

        * src/man.c (struct candidate): Add ult member.
          (duplicate_candidates): Pare down to only check for duplication
          rather than trying to compare as well; the latter function is now
          handled entirely by compare_candidates. Compare the ultimate
          source file as the first test.
          (compare_candidates): Compare locale elements in candidate paths
          before comparing sections.
          (add_candidates): Look up the ultimate source file if necessary,
          and save it in the candidate structure. Use duplicate_candidates
          for duplicate testing only and compare_candidates for comparison.
          Insert elements at the latest possible position rather than the
          earliest possible.
          (try_section): Pass the ultimate source file that was already
          looked up here.
          (try_db): Adjust for new add_candidate signature.

Cheers,

-- 
Colin Watson                                       [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to