Patchwork [1/1] texinfo-dummy-native: Fix dummy scripts failing when paths contain capital Es

login
register
mail settings
Submitter Max Eliaser
Date June 13, 2014, 10:07 p.m.
Message ID <2ed2b4797e7f46bc7c2e4686dbf447610632b855.1402697205.git.max.eliaser@intel.com>
Download mbox | patch
Permalink /patch/73797/
State Accepted
Commit 03def887a44b7850b30186c96fa3f6fcf7146159
Headers show

Comments

Max Eliaser - June 13, 2014, 10:07 p.m.
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@intel.com>
---
 meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

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