Long inline shell and repeated explanations obscure the job sequence. The engine already has its own selftest. Because one failed issue update must not cancel the others, disable matrix fail-fast. An empty eix result must produce an empty package map. Pin the push action because the dependency-table job grants it write access. Signed-off-by: Zakk <zakk@gentoozh.org>
9 lines
374 B
Bash
Executable File
9 lines
374 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# usage: needs-cpu-flags.sh <atom>; exit 0 if baseline flags leave REQUIRED_USE unsatisfied.
|
|
|
|
atom=${1:?atom}
|
|
# A masked package never reports REQUIRED_USE, so accept every keyword and license.
|
|
output=$(ACCEPT_KEYWORDS="~$(portageq envvar ARCH)" ACCEPT_LICENSE="*" \
|
|
emerge --pretend --quiet --nodeps "${atom}" 2>&1)
|
|
grep -q REQUIRED_USE <<<"${output}"
|