summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests
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/tests
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/tests')
-rw-r--r--bitbake/lib/bb/tests/fetch.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index 233ecae737..1152e89c0d 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -653,8 +653,10 @@ class CleanTarballTest(FetcherTest):
653 archive = tarfile.open(os.path.join(self.dldir, self.recipe_tarball)) 653 archive = tarfile.open(os.path.join(self.dldir, self.recipe_tarball))
654 self.assertNotEqual(len(archive.members), 0) 654 self.assertNotEqual(len(archive.members), 0)
655 for member in archive.members: 655 for member in archive.members:
656 self.assertEqual(member.uname, 'pokybuild') 656 self.assertEqual(member.uname, 'oe')
657 self.assertEqual(member.gname, 'users') 657 self.assertEqual(member.uid, 0)
658 self.assertEqual(member.gname, 'oe')
659 self.assertEqual(member.gid, 0)
658 self.assertEqual(member.mtime, mtime) 660 self.assertEqual(member.mtime, mtime)
659 661
660 662