Re: [PATCH 3/3] meson: don't install git-pack-redundant(1) docs with breaking changes
- From
- Phillip Wood <phillip.wood123@gmail.com>
- Date
- Mar 18, 2025, 10:06 UTC
- Message-ID
- <7fee83f7-995b-4c84-9216-caa6803a69d9@gmail.com>
- In-Reply-To
- <d341777a-a6e5-46fe-8004-9fe885321905@gmail.com>
On 17/03/2025 14:50, Phillip Wood wrote:
Show 19 quoted lines
>
> Oh so if we have selected breaking_changes then manpages.keys() does not
> include "git-pack-redundant.adoc" but that file exists and so we need to
> add it to the list of configured man pages. If breaking_changes is
> selected then don't we end up adding "git-pack-redundant.adoc" to
> configured_manpages twice? Does that matter when we come to do
>
> actual_manpages = run_command(shell, '-c', 'ls git*.adoc scalar.adoc',
> check: true,
> env: script_environment,
> ).stdout().strip().split('\n')
>
> if configured_manpages != actual_manpages
> ...
>
> ? Also I'm confused as to how that comparison works without sorting
> configured_manpages. Even if manpages.keys() sorts the keys (the
> documentation at [1] is silent on that) we add some out-of-order entries
> to the end of the list.I think the answer is that the comparison always fails but as there are no missing or superfluous man pages the body of the if does not error out.
Best Wishes
Phillip