[oe-commits] Saul Wold : lib/oe/lsb.py: Fix up for dash

git at git.openembedded.org git at git.openembedded.org
Sat Feb 14 22:27:33 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 105280d58f7be50e5aee6a33ef1aa89dd6485cbf
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=105280d58f7be50e5aee6a33ef1aa89dd6485cbf

Author: Saul Wold <sgw at linux.intel.com>
Date:   Tue Feb 10 09:57:44 2015 -0800

lib/oe/lsb.py: Fix up for dash

Remove the leading -e when using dash which does not use -e with echo

Signed-off-by: Saul Wold <sgw at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>

---

 meta/lib/oe/lsb.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
index b53f361..50c1d47 100644
--- a/meta/lib/oe/lsb.py
+++ b/meta/lib/oe/lsb.py
@@ -9,6 +9,7 @@ def release_dict():
 
     data = {}
     for line in output.splitlines():
+        if line.startswith("-e"): line = line[3:]
         try:
             key, value = line.split(":\t", 1)
         except ValueError:



More information about the Openembedded-commits mailing list