Skip to contentSkip to conversation

Fix texinfo-dummy-native bug causing false-positive assertion errors

PATCH New Max Eliaser 1 participant 2 messages Jun 13, 2014

lore
Share & tools
lore
#0 lore raw

cover Fix texinfo-dummy-native bug causing false-positive assertion errors

Hello list,

This is a simple one-line fix for Denys Dmytriyenko's bug.

Regards,
-Max Eliaser
The following changes since commit 5452824960e8e77005a25ac11fd069d927523d3e:

default-distrovars.inc: Remove unused variable 'LIMIT_BUILT_LOCALES' (2014-06-13 13:08:44 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib meliaser/fix-texinfo-dummy-capital-E
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=meliaser/fix-texinfo-dummy-capital-E

Max Eliaser (1):
texinfo-dummy-native: Fix dummy scripts failing when paths contain
capital Es

 meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 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.

---
 meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py +1 -1
index 4dc31a9..b0ebf75 100644
@@ -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
         
Signature · 1 line
1.8.3.2