github: Add a warning about moved or obsoleted packages

Packages (and eclasses) in Gentoo are sometimes moved around or
completely removed. It's good to know about this when it happens,
because such package won't be updated any more, so print a warning.
This commit is contained in:
Krzesimir Nowak 2022-10-17 17:27:50 +02:00
parent c68b399d89
commit e07dc35011

View File

@ -39,6 +39,16 @@ jobs:
echo "::warning title=${package}::Nonexistent package"
continue
fi
if [[ ! -e "../gentoo/${package}" ]]; then
# If this happens, it means that the package was obsoleted or moved
# in Gentoo. The obsoletion needs to be handled in the case-by-case
# manner, while move should be handled by doing the same move
# in portage-stable. The build should not break because of the move,
# because most likely it's already reflected in the profiles/updates
# directory.
echo "::warning title=${package}::Obsolete or moved package"
continue
fi
GENTOO_REPO=../gentoo ../flatcar-build-scripts/sync-with-gentoo "${package}"
done < <(grep '^[^#]' .github/workflows/packages-list)
cd ..