Files
gentoo/sci-libs
Eli Schwartz 7aa3a581c4 sci-libs/netcdf: fix bad bash scripting leading to failed tests
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>
2024-05-30 00:46:07 +01:00
..
2024-03-05 06:46:48 +00:00
…
2024-04-30 20:21:05 +02:00
2024-04-30 20:21:05 +02:00
…
2024-05-07 08:40:30 +02:00
…
2024-04-30 20:21:05 +02:00
2024-05-26 17:18:13 +02:00
…
2024-02-28 17:48:44 +01:00
…
2024-03-12 06:11:40 +00:00
…
…
2024-04-19 09:07:51 +03:00
2024-01-12 15:36:00 +01:00
…
…
2024-01-13 09:42:54 +01:00
2024-02-08 20:25:35 -05:00
2024-01-12 15:36:00 +01:00
2024-03-14 00:34:35 +00:00
2024-04-30 20:21:05 +02:00
2024-05-01 13:44:24 +02:00
…
2024-04-08 06:21:59 +01:00
2024-02-28 17:48:44 +01:00
2024-05-24 10:59:49 +02:00
2024-03-01 23:28:07 +01:00
2024-05-05 20:56:05 +02:00
…
2024-04-30 20:21:05 +02:00
2024-05-13 12:50:28 +03:00
…
2024-01-12 15:36:00 +01:00
2024-03-17 10:41:46 +00:00
2024-03-16 13:13:09 +01:00
…
2024-04-30 20:21:05 +02:00
2024-04-30 20:21:05 +02:00
2024-01-12 15:36:00 +01:00
…
2024-03-24 22:02:43 +01:00
2024-03-08 19:21:54 +00:00
…
…
2024-04-30 20:21:05 +02:00
…
2024-03-21 05:57:43 +00:00
2024-04-08 20:48:47 +02:00
2024-05-26 19:36:22 +02:00
2024-05-23 10:08:37 +02:00
2024-04-24 14:50:46 +02:00
2024-01-12 15:36:00 +01:00
2024-04-22 19:52:41 +02:00
2024-05-26 17:18:10 +02:00
…
2024-05-08 19:22:39 +02:00
2024-04-30 20:21:05 +02:00
2024-01-15 09:01:39 +01:00
…
2024-04-30 20:21:05 +02:00
…
2024-04-30 20:21:05 +02:00
2023-12-31 13:47:20 +01:00
…
2024-01-12 15:36:00 +01:00
2024-01-12 15:36:00 +01:00
2024-05-01 13:26:55 +02:00