mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
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:
parent
1d8feba460
commit
c68b399d89
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user