Patchwork [1/3] meta/lib/oe/ extract only the needed info from lsb-release

mail settings
Submitter Cristian Iorga
Date March 29, 2013, 2:10 p.m.
Message ID <>
Download mbox | patch
Permalink /patch/47127/
State Accepted
Commit 79a2252545ab50c79e00e02c328191c1163f917d
Headers show


Cristian Iorga - March 29, 2013, 2:10 p.m.
Instead of running lsb_release -a, a lsb_release -ir will be run.
This will prevent issue with distros that don't have all the needed
info in /etc/lsb-release file, in which case lsb_release won't generate
an error code.

Partial fix for [YOCTO #4071]

Signed-off-by: Cristian Iorga <>
 meta/lib/oe/ |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


diff --git a/meta/lib/oe/ b/meta/lib/oe/
index ebf90ba..fed1204 100644
--- a/meta/lib/oe/
+++ b/meta/lib/oe/
@@ -1,9 +1,9 @@ 
 def release_dict():
-    """Return the output of lsb_release -a as a dictionary"""
+    """Return the output of lsb_release -ir as a dictionary"""
     from subprocess import PIPE
-        output, err =['lsb_release', '-a'], stderr=PIPE)
+        output, err =['lsb_release', '-ir'], stderr=PIPE)
     except bb.process.CmdError as exc:
         return None