On 2021-08-23 01:15:13 +0900, Osamu Aoki wrote:
> What do you think is the best way to help people like this.
> 
> I am thinking to change -common
> 
>  recommend: debian-reference-en|debian-reference

This means that a user who wants to install debian-reference-fr
would get debian-reference-en too (by default). This is better
than the current behavior, but I don't see the point.

I don't understand why debian-reference-common would recommend
anything. Installed alone, this package wouldn't do anything
useful, but it would not be broken. It is not up to the dependency
system to prevent users from doing useless things. And proposing
the English version by default may not be the best thing to do
(some users may deduce that this is the only version).

For instance, similarly, cups-common doesn't depend on or recommend
any package. On the opposite, cups depends on cups-common.

If the issue is the desktop menu entry, I see 2 solutions:

1. If possible (I don't know whether .desktop files support
conditionals), do not provide a menu entry if
/usr/share/debian-reference/index.html isn't available (this file is
built by /var/lib/dpkg/info/debian-reference-common.postinst when one
or several versions of the guide are installed).

2. Always provide a /usr/share/debian-reference/index.html file, and
when no versions of the guide are installed, this file should explain
that one or several versions (debian-reference-en, debian-reference-fr,
etc.) needs to be installed, or debian-reference for all of them.
In this case, the test

  [ -r $BDOCUMENTSTEM/index.html ]

in /usr/bin/debian-reference may no longer be needed (since this
file should always exist).

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to