From e07dc35011cefb062dea657eda204108b81e142e Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 17 Oct 2022 17:27:50 +0200 Subject: [PATCH] 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. --- .../.github/workflows/update-packages-from-list.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml b/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml index b1ac7a2caa..1b6a717f2c 100644 --- a/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml +++ b/sdk_container/src/third_party/portage-stable/.github/workflows/update-packages-from-list.yml @@ -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 ..