script: binpkgs-missing-rebuild script to identify missing binpkgs we actually want

This commit is contained in:
Rick Farina (Zero_Chaos) 2021-03-22 12:23:14 -04:00
parent 4c65874add
commit 72ef4c9bd8
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

14
scripts/binpkgs-missing-rebuild Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
binpkg_restricted="$(portageq envvar PENTOO_BINPKG_RESTRICTED)"
for missing in $($(portageq get_repo_path / pentoo)/scripts/binpkgs-missing); do
skip=0
for restricted in ${binpkg_restricted}; do
if [[ ${missing} =~ ${restricted} ]]; then
skip=1
break
fi
done
if [ "${skip}" = "0" ]; then
printf "${missing}\n"
fi
done