summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorOlaf Mandel <o.mandel@menlosystems.com>2022-04-08 16:50:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-14 09:48:33 +0100
commitd1f254d56fc2fe337c44a79d2db6283283e71f4a (patch)
treed6d676513a76546b4cdcc40ece6c91ac4226655c /bitbake/lib/bb/fetch2/git.py
parent73d0fcf5d55f0319bfee5de970258bc1b27fa18f (diff)
downloadpoky-d1f254d56fc2fe337c44a79d2db6283283e71f4a.tar.gz
bitbake: fetch2/git: canonicalize ids in generated tarballs
Change the owner information in the mirror tarballs generated using BB_GENERATE_MIRROR_TARBALLS="1". This is an extension of commit 0178ab83, which used the original pokybuild:user information, but failed to clean up the numerical user and group ids. Now set the more canonical values of oe:oe and 0:0. (Bitbake rev: 37437115d3fb1a9f5d8ed7356a0fc01a408e4f8c) Signed-off-by: Olaf Mandel <o.mandel@menlosystems.com> CC: Marek Vasut <marex@denx.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 4d06a57198..b3eb8248d0 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -464,7 +464,7 @@ class Git(FetchMethod):
464 with create_atomic(ud.fullmirror) as tfile: 464 with create_atomic(ud.fullmirror) as tfile:
465 mtime = runfetchcmd("git log --all -1 --format=%cD", d, 465 mtime = runfetchcmd("git log --all -1 --format=%cD", d,
466 quiet=True, workdir=ud.clonedir) 466 quiet=True, workdir=ud.clonedir)
467 runfetchcmd("tar -czf %s --owner pokybuild --group users --mtime \"%s\" ." 467 runfetchcmd("tar -czf %s --owner oe:0 --group oe:0 --mtime \"%s\" ."
468 % (tfile, mtime), d, workdir=ud.clonedir) 468 % (tfile, mtime), d, workdir=ud.clonedir)
469 runfetchcmd("touch %s.done" % ud.fullmirror, d) 469 runfetchcmd("touch %s.done" % ud.fullmirror, d)
470 470