hi Paul,

On Sat Sep 22, 2018 at 3:46 AM CEST, Paul Wise wrote:
> Package: adequate
> Version: 0.15.1
> Severity: wishlist
>
> I discovered some broken alternatives and reported them in #909340,
> it would be nice if adequate could also report when the alternatives
> registry items[1] contain filenames that do not exist on the system
> and when the alternatives configuration[2] contains broken symlinks.
>
>    1. /var/lib/dpkg/alternatives/*
>    2. /etc/alternatives/*

I think, even back then, adequate already implemented this functionality, with a
few important caveats:

1. it used update-alternatives to get data, rather than access them directly via
   the two dirs you list (it still does)
2. it would fail on empty alternatives (#857265, recently fixed in 0.16.1)
3. it would (and still does) report only on x-window-manager and
   x-terminal-emulator

so #909340 would not have been detected back then due to 2 and 3, nor today due
to 3.

I'm unsure as to whether the original author of adequate chose to emit tags only
for those two alternative names; perhaps because the Debian policy only requires
the use of alternatives for those two alternative names. in any case, it seems
reasonable to me to drop 3 (as in, check for _all_ alternative names for which
links are configured).

thanks,
Serafeim

Attachment: signature.asc
Description: PGP signature

Reply via email to