mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 10:01:32 +02:00
.github: update PV in ebuilds of dev-lang/rust
Every dev-lang/rust ebuild does a specific check if PV is the version, e.g.: if [[ "${PV}" == 1.66.1 ]]; then, So it is needed to replace the hard-coded version with the new version.
This commit is contained in:
parent
2fa548c7d6
commit
c9cdacfa53
@ -28,6 +28,12 @@ find profiles -name 'package.*' | xargs sed -i "s/\([><]*=\|~\)*dev-lang\/rust-\
|
||||
find profiles -name 'package.*' | xargs sed -i "s/\([><]*=\|~\)*virtual\/rust-\S\+/\1virtual\/rust-${VERSION_NEW}/"
|
||||
|
||||
EBUILD_FILENAME=$(get_ebuild_filename "dev-lang" "rust" "${VERSION_OLD}")
|
||||
|
||||
# Every ebuild for dev-lang/rust does a specific check if PV is the version.
|
||||
# e.g. if [[ "${PV}" == 1.66.1 ]]; then,
|
||||
# So it is needed to replace the hard-coded version with the new version.
|
||||
sed -i "s/PV\(.*\)${VERSION_OLD}/PV\1${VERSION_NEW}/g" ${EBUILD_FILENAME}
|
||||
|
||||
git mv "${EBUILD_FILENAME}" "dev-lang/rust/rust-${VERSION_NEW}.ebuild"
|
||||
EBUILD_FILENAME=$(get_ebuild_filename "virtual" "rust" "${VERSION_OLD}")
|
||||
git mv "${EBUILD_FILENAME}" "virtual/rust/rust-${VERSION_NEW}.ebuild"
|
||||
|
Loading…
x
Reference in New Issue
Block a user