[oe-commits] Max Eliaser : texinfo-dummy-native: Fix dummy scripts failing when paths contain capital Es

git at git.openembedded.org git at git.openembedded.org
Fri Jun 13 23:16:32 UTC 2014


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

Author: Max Eliaser <max.eliaser at intel.com>
Date:   Fri Jun 13 15:07:42 2014 -0700

texinfo-dummy-native: Fix dummy scripts failing when paths contain capital Es

This was an issue in the command-line argument parsing. It was the cause of
the bug reported on the OE-core mailing list by Denys Dmytriyenko.

Signed-off-by: Max Eliaser <max.eliaser at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py b/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py
index 4dc31a9..b0ebf75 100644
--- a/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py
+++ b/meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py
@@ -104,7 +104,7 @@ while arg_idx < len (sys.argv):
     
     # Check for functionality that isn't implemented yet.
     else:
-        assert arg[1] == '-' or 'E' not in arg or \
+        assert arg[0] != '-' or arg[1] == '-' or 'E' not in arg or \
                this_binary in simple_binaries, \
                "-E option not yet supported" + stub_msg
         



More information about the Openembedded-commits mailing list