[prev in list] [next in list] [prev in thread] [next in thread]
List: openembedded-core
Subject: [OE-core] [PATCH 1/3] meta/lib/oe/lsb.py: extract only the needed info from lsb-release
From: cristian.iorga () intel ! com (Cristian Iorga)
Date: 2013-03-29 14:10:51
Message-ID: 1364566251-16209-1-git-send-email-cristian.iorga () intel ! com
[Download RAW message or body]
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 <cristian.iorga at intel.com>
---
meta/lib/oe/lsb.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
index ebf90ba..fed1204 100644
--- a/meta/lib/oe/lsb.py
+++ b/meta/lib/oe/lsb.py
@@ -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
try:
- output, err = bb.process.run(['lsb_release', '-a'], stderr=PIPE)
+ output, err = bb.process.run(['lsb_release', '-ir'], stderr=PIPE)
except bb.process.CmdError as exc:
return None
--
1.7.10.4
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic