diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2024-05-29 19:34:59 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-05-30 00:46:07 +0100 |
commit | 7aa3a581c47230c4df31588134acd090b67cc984 (patch) | |
tree | 657963f8ccb67d3cac73ce0c930efa2152e580d8 /dev-python/sphinxcontrib-doxylink | |
parent | app-portage/kuroneko: enable py3.13 (diff) | |
download | gentoo-master.tar.gz gentoo-master.tar.bz2 gentoo-master.zip |
If USE=-mpi, a file in src_test is NOT sedded to fix a bug in the file,
because the file does not exist. But this condition was incorrectly
coded.
In bash:
```
cmd1 && cmd2 || cmd3
```
is a code smell. If either of the first two commands fails, the third
command is run -- in this case, die. In other words, the first two
commands were *supposed* to be "only run cmd2 if it makes sense to".
Instead, if it "doesn't make sense to" run cmd2, the die was triggered.
A more general solution is to spec the build format to require all
commands to pass without manually `die`ing (leading to the use of &&
ceasing in general), but that is not how portage works. Either way, the
solution is using `if` as intended.
ref. https://mywiki.wooledge.org/BashGuide/TestsAndConditionals
Closes: https://bugs.gentoo.org/933136
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/sphinxcontrib-doxylink')
0 files changed, 0 insertions, 0 deletions