mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
.github: list only ebuilds with a unique VERSION_OLD
Due to unnecessary wildcard listings, ebuild files including all rc or beta are being listed. Since `VERSION_OLD` is already generated as a unique version, we do not need to list multiple files to filter by running `head -n1` etc. We just need to use only the specific ebuild. Simply list only the unique ebuild file.
This commit is contained in:
parent
e2cd417df5
commit
08ea76673f
@ -24,7 +24,7 @@ DOCKER_VERSION=$(sed -n "s/^DIST docker-\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p" app-e
|
|||||||
|
|
||||||
# we need to update not only the main ebuild file, but also its CONTAINERD_COMMIT,
|
# we need to update not only the main ebuild file, but also its CONTAINERD_COMMIT,
|
||||||
# which needs to point to COMMIT_HASH that matches with $VERSION_NEW from upstream containerd.
|
# which needs to point to COMMIT_HASH that matches with $VERSION_NEW from upstream containerd.
|
||||||
containerdEbuildOldSymlink=$(ls -1 app-emulation/containerd/containerd-${VERSION_OLD}*.ebuild | sort -ruV | head -n1)
|
containerdEbuildOldSymlink=$(ls -1 app-emulation/containerd/containerd-${VERSION_OLD}.ebuild)
|
||||||
containerdEbuildNewSymlink="app-emulation/containerd/containerd-${VERSION_NEW}.ebuild"
|
containerdEbuildNewSymlink="app-emulation/containerd/containerd-${VERSION_NEW}.ebuild"
|
||||||
containerdEbuildMain="app-emulation/containerd/containerd-9999.ebuild"
|
containerdEbuildMain="app-emulation/containerd/containerd-9999.ebuild"
|
||||||
git mv ${containerdEbuildOldSymlink} ${containerdEbuildNewSymlink}
|
git mv ${containerdEbuildOldSymlink} ${containerdEbuildNewSymlink}
|
||||||
|
@ -22,7 +22,7 @@ fi
|
|||||||
|
|
||||||
# we need to update not only the main ebuild file, but also its DOCKER_GITCOMMIT,
|
# we need to update not only the main ebuild file, but also its DOCKER_GITCOMMIT,
|
||||||
# which needs to point to COMMIT_HASH that matches with $VERSION_NEW from upstream docker-ce.
|
# which needs to point to COMMIT_HASH that matches with $VERSION_NEW from upstream docker-ce.
|
||||||
dockerEbuildOldSymlink=$(ls -1 app-emulation/docker/docker-${VERSION_OLD}*.ebuild | sort -ruV | head -n1)
|
dockerEbuildOldSymlink=$(ls -1 app-emulation/docker/docker-${VERSION_OLD}.ebuild)
|
||||||
dockerEbuildNewSymlink="app-emulation/docker/docker-${VERSION_NEW}.ebuild"
|
dockerEbuildNewSymlink="app-emulation/docker/docker-${VERSION_NEW}.ebuild"
|
||||||
dockerEbuildMain="app-emulation/docker/docker-9999.ebuild"
|
dockerEbuildMain="app-emulation/docker/docker-9999.ebuild"
|
||||||
git mv ${dockerEbuildOldSymlink} ${dockerEbuildNewSymlink}
|
git mv ${dockerEbuildOldSymlink} ${dockerEbuildNewSymlink}
|
||||||
|
@ -21,7 +21,7 @@ if [[ "${VERSION_NEW}" = "${VERSION_OLD}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git mv $(ls -1 sys-kernel/coreos-firmware/coreos-firmware-${VERSION_OLD}*.ebuild | sort -ruV | head -n1) "sys-kernel/coreos-firmware/coreos-firmware-${VERSION_NEW}.ebuild"
|
git mv $(ls -1 sys-kernel/coreos-firmware/coreos-firmware-${VERSION_OLD}.ebuild) "sys-kernel/coreos-firmware/coreos-firmware-${VERSION_NEW}.ebuild"
|
||||||
|
|
||||||
popd >/dev/null || exit
|
popd >/dev/null || exit
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ if [[ "${VERSION_NEW}" = "${VERSION_OLD}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git mv $(ls -1 dev-lang/go/go-${VERSION_OLD}*.ebuild | sort -ruV | head -n1) "dev-lang/go/go-${VERSION_NEW}.ebuild"
|
git mv $(ls -1 dev-lang/go/go-${VERSION_OLD}.ebuild) "dev-lang/go/go-${VERSION_NEW}.ebuild"
|
||||||
|
|
||||||
popd >/dev/null || exit
|
popd >/dev/null || exit
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ if [[ "${VERSION_NEW}" = "${VERSION_OLD}" ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
runcEbuildOld=$(ls -1 app-emulation/docker-runc/docker-runc-${VERSION_OLD}*.ebuild | sort -ruV | head -n1)
|
runcEbuildOld=$(ls -1 app-emulation/docker-runc/docker-runc-${VERSION_OLD}.ebuild)
|
||||||
runcEbuildNew="app-emulation/docker-runc/docker-runc-${VERSION_NEW}.ebuild"
|
runcEbuildNew="app-emulation/docker-runc/docker-runc-${VERSION_NEW}.ebuild"
|
||||||
git mv ${runcEbuildOld} ${runcEbuildNew}
|
git mv ${runcEbuildOld} ${runcEbuildNew}
|
||||||
sed -i "s/${VERSION_OLD}/${VERSION_NEW}/g" ${runcEbuildNew}
|
sed -i "s/${VERSION_OLD}/${VERSION_NEW}/g" ${runcEbuildNew}
|
||||||
|
@ -24,7 +24,7 @@ fi
|
|||||||
find profiles -name 'package.*' | xargs sed -i "s/=dev-lang\/rust-${VERSION_OLD}/=dev-lang\/rust-${VERSION_NEW}/"
|
find profiles -name 'package.*' | xargs sed -i "s/=dev-lang\/rust-${VERSION_OLD}/=dev-lang\/rust-${VERSION_NEW}/"
|
||||||
|
|
||||||
pushd "dev-lang/rust" >/dev/null || exit
|
pushd "dev-lang/rust" >/dev/null || exit
|
||||||
git mv $(ls -1 rust-${VERSION_OLD}*.ebuild | sort -ruV | head -n1) "rust-${VERSION_NEW}.ebuild"
|
git mv $(ls -1 rust-${VERSION_OLD}.ebuild) "rust-${VERSION_NEW}.ebuild"
|
||||||
popd >/dev/null || exit
|
popd >/dev/null || exit
|
||||||
|
|
||||||
popd >/dev/null || exit
|
popd >/dev/null || exit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user