From 7d1c3470bb06e43245ccb7f067121de606506430 Mon Sep 17 00:00:00 2001 From: Leonardo Sandoval Date: Wed, 2 Sep 2015 08:59:43 +0000 Subject: 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] Signed-off-by: Leonardo Sandoval Signed-off-by: Richard Purdie --- meta/classes/distrodata.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/classes/distrodata.bbclass') 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() { 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) -- cgit 1.2.3-korg