github: Fix package check

Packages in the list are not necessarily packages only, which are
represented as directories (like sys-apps/systemd), but also, in case
of eclasses, plain files. The check was checking for the path to be a
directory and emitted the warning if it was not, which resulted in
eclasses being kept not updated. Just check if the path exists.
This commit is contained in:
Krzesimir Nowak 2022-10-17 17:25:06 +02:00
parent 1d8feba460
commit c68b399d89

View File

@ -33,7 +33,7 @@ jobs:
old_head=$(git -C portage-stable rev-parse HEAD)
cd portage-stable
while read -r package; do
if [[ ! -d "${package}" ]]; then
if [[ ! -e "${package}" ]]; then
# If this happens, it means that the package was moved to overlay
# or dropped, the list ought to be updated.
echo "::warning title=${package}::Nonexistent package"