summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2013-02-19 00:26:08 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-03-01 13:03:30 +0000
commite5f3b992d7edc7b5e2467865a9fad738fbeaf40f (patch)
tree3d7f93228b43c8b8f938f2e279020016ae789c63 /meta/classes
parent8506e4f454231a58985e05a11d47dd4556e90bc3 (diff)
downloadpoky-e5f3b992d7edc7b5e2467865a9fad738fbeaf40f.tar.gz
sanity: use lsb distro_identifier
* distro_identifier returns lsb_data['Distributor ID']-lsb_data['Release'] which in some cases is different then lsb_release -d -s, e.g. Distributor ID: Ubuntu Description: Ubuntu 12.04 LTS Release: 12.04 Codename: precise But we probably don't need to sanity list each point release in LTS and sstate is already using distro_identifier as prefix for native sstate archives * This will need update to SANITY_TESTED_DISTROS (at least s/Ubuntu 12.04 LTS/Ubuntu-12.04/g etc), that's why sending as RFC first. (From OE-Core rev: a32ea459ca168792161af2d521a14fe00cffb4b3) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sanity.bbclass5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index d3bf05a803..94c6ce340f 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -280,11 +280,8 @@ def check_supported_distro(sanity_data):
280 f.close() 280 f.close()
281 else: 281 else:
282 # Use LSB method 282 # Use LSB method
283 import subprocess as sub
284 try: 283 try:
285 p = sub.Popen(['lsb_release','-d','-s'],stdout=sub.PIPE,stderr=sub.PIPE) 284 distro = oe.lsb.distro_identifier()
286 out, err = p.communicate()
287 distro = out.rstrip()
288 except Exception: 285 except Exception:
289 distro = None 286 distro = None
290 287