On Fri, 14 Aug 2009, Kurt Roeckx wrote:
> The documentation says that -c2 should fail if new symbols got
> added, but it doesn't for me.

Wildcard symbols do not allow this currently since you don't have any
comprehensive list of symbols in the reference symbol file. Any symbol
in the final file is _not_ in the original file and thus the current code
triggers for all symbols. That's the reason why it's disabled.

But we could possibly change that to fail if we have symbols not covered
by one of the wildcards in the source file... it would indeed be more
logical.

Extract of the code:
    if ($symfile->get_new_symbols($ref_symfile)) {
        unless ($symfile->used_wildcards()) {
            # Wildcards are used to replace many additional symbols, so we
            # have no idea if this is really true, so don't say it and
            # don't check it
            warning(_g("some new symbols appeared in the symbols file: %s"),
                    _g("see diff output below"));
            $exitcode = 2 if ($compare >= 2);
        }
    }

Cheers,
-- 
Raphaƫl Hertzog




--
To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to