]> code.ossystems Code Review - openembedded-core.git/commitdiff
texinfo-dummy-native: Fix dummy scripts failing when paths contain capital Es
authorMax Eliaser <max.eliaser@intel.com>
Fri, 13 Jun 2014 22:07:42 +0000 (15:07 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Jun 2014 23:15:54 +0000 (00:15 +0100)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py

index 4dc31a90f6ef18b6a3f72ac2e30c5202a3c3211b..b0ebf75a15ab48e65a124d3b071864ddabf743bc 100644 (file)
@@ -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