1
0
mirror of https://git.yoctoproject.org/poky synced 2026-06-06 14:49:50 +00:00

repo: upgrade 2.20 -> 2.21

sed-patch the sources from do_configure, as otherwise
this breaks automated updates (devtool creates a patch
out of changes done by sed).

(From OE-Core rev: 7070f8a4ce56656720b43cbb68097f46d9213bdc)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2022-02-17 17:09:26 +01:00
committed by Richard Purdie
parent 3f56d67975
commit 933e8c8282
@@ -12,18 +12,16 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
SRC_URI = "git://gerrit.googlesource.com/git-repo.git;protocol=https;branch=main \
file://0001-python3-shebang.patch \
"
SRCREV = "98bb76577d9e7e0ffdeb643f1654ec006f6bbc8c"
SRCREV = "8e91248655acf1c8044ed8c1b265b804a99eb07f"
MIRRORS += "git://gerrit.googlesource.com/git-repo.git git://github.com/GerritCodeReview/git-repo.git"
S = "${WORKDIR}/git"
do_set_fixed_rev() {
sed -Ei "s/REPO_REV\s*=\s*('|\")stable('|\")/REPO_REV = '${SRCREV}'/g" ${S}/repo
do_configure:prepend() {
sed -Ei "s/REPO_REV\s*=\s*('|\")stable('|\")/REPO_REV = '${SRCREV}'/g" ${S}/repo
}
do_patch[postfuncs] += "do_set_fixed_rev"
do_install() {
install -D ${WORKDIR}/git/repo ${D}${bindir}/repo
}