mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 07:39:49 +02:00
distrodata: Take account proxies on distrodata tasks
Proxies defined in the enviroment where not taken into account
on the distrodata tasks. This commit implied passing the datastore
into the distro_check library and context manager for the
urllib.urlopen function.
One way to run distrodata tasks is using 'universe' as target and the
'all' distrodata task:
$ bitbake universe -c distrodataall
$ bitbake universe -c distro_checkall
$ bitbake universe -c checklicenseall
Logs are located under TMPDIR/log
[YOCTO #7567]
(From OE-Core rev: 7d1c3470bb06e43245ccb7f067121de606506430)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f047ee8c95
commit
12cd705b28
@@ -33,7 +33,7 @@ python do_distrodata_np() {
|
||||
tmpdir = d.getVar('TMPDIR', True)
|
||||
distro_check_dir = os.path.join(tmpdir, "distro_check")
|
||||
datetime = localdata.getVar('DATETIME', True)
|
||||
dist_check.update_distro_data(distro_check_dir, datetime)
|
||||
dist_check.update_distro_data(distro_check_dir, datetime, localdata)
|
||||
|
||||
if pn.find("-native") != -1:
|
||||
pnstripped = pn.split("-native")
|
||||
@@ -118,7 +118,7 @@ python do_distrodata() {
|
||||
tmpdir = d.getVar('TMPDIR', True)
|
||||
distro_check_dir = os.path.join(tmpdir, "distro_check")
|
||||
datetime = localdata.getVar('DATETIME', True)
|
||||
dist_check.update_distro_data(distro_check_dir, datetime)
|
||||
dist_check.update_distro_data(distro_check_dir, datetime, localdata)
|
||||
|
||||
pn = d.getVar("PN", True)
|
||||
bb.note("Package Name: %s" % pn)
|
||||
@@ -406,7 +406,7 @@ python do_distro_check() {
|
||||
bb.utils.mkdirhier(logpath)
|
||||
result_file = os.path.join(logpath, "distrocheck.csv")
|
||||
datetime = localdata.getVar('DATETIME', True)
|
||||
dc.update_distro_data(distro_check_dir, datetime)
|
||||
dc.update_distro_data(distro_check_dir, datetime, localdata)
|
||||
|
||||
# do the comparison
|
||||
result = dc.compare_in_distro_packages_list(distro_check_dir, d)
|
||||
|
||||
Reference in New Issue
Block a user