summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
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