summaryrefslogtreecommitdiffstats
path: root/meta/classes/distrodata.bbclass
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2015-09-02 08:59:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-01 15:07:48 +0100
commit12cd705b28412c1342c1c022340c13b1ef2c8a71 (patch)
tree605515e411259ce02b09d0edb21a6e47d7dc8ef8 /meta/classes/distrodata.bbclass
parentf047ee8c953526e4b571745fb91da3ce8522d758 (diff)
downloadpoky-12cd705b28412c1342c1c022340c13b1ef2c8a71.tar.gz
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>
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r--meta/classes/distrodata.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index e6eb3f32b3..5a4c1b6faf 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -33,7 +33,7 @@ python do_distrodata_np() {
33 tmpdir = d.getVar('TMPDIR', True) 33 tmpdir = d.getVar('TMPDIR', True)
34 distro_check_dir = os.path.join(tmpdir, "distro_check") 34 distro_check_dir = os.path.join(tmpdir, "distro_check")
35 datetime = localdata.getVar('DATETIME', True) 35 datetime = localdata.getVar('DATETIME', True)
36 dist_check.update_distro_data(distro_check_dir, datetime) 36 dist_check.update_distro_data(distro_check_dir, datetime, localdata)
37 37
38 if pn.find("-native") != -1: 38 if pn.find("-native") != -1:
39 pnstripped = pn.split("-native") 39 pnstripped = pn.split("-native")
@@ -118,7 +118,7 @@ python do_distrodata() {
118 tmpdir = d.getVar('TMPDIR', True) 118 tmpdir = d.getVar('TMPDIR', True)
119 distro_check_dir = os.path.join(tmpdir, "distro_check") 119 distro_check_dir = os.path.join(tmpdir, "distro_check")
120 datetime = localdata.getVar('DATETIME', True) 120 datetime = localdata.getVar('DATETIME', True)
121 dist_check.update_distro_data(distro_check_dir, datetime) 121 dist_check.update_distro_data(distro_check_dir, datetime, localdata)
122 122
123 pn = d.getVar("PN", True) 123 pn = d.getVar("PN", True)
124 bb.note("Package Name: %s" % pn) 124 bb.note("Package Name: %s" % pn)
@@ -406,7 +406,7 @@ python do_distro_check() {
406 bb.utils.mkdirhier(logpath) 406 bb.utils.mkdirhier(logpath)
407 result_file = os.path.join(logpath, "distrocheck.csv") 407 result_file = os.path.join(logpath, "distrocheck.csv")
408 datetime = localdata.getVar('DATETIME', True) 408 datetime = localdata.getVar('DATETIME', True)
409 dc.update_distro_data(distro_check_dir, datetime) 409 dc.update_distro_data(distro_check_dir, datetime, localdata)
410 410
411 # do the comparison 411 # do the comparison
412 result = dc.compare_in_distro_packages_list(distro_check_dir, d) 412 result = dc.compare_in_distro_packages_list(distro_check_dir, d)