Can't build any images
Since this commit:
commit 8b42409dca729b7abbbdac04f533e161de86a3ef
Author: Paul Eggleton <[email protected]>
Date: Fri Oct 18 15:19:58 2013 +0100
scripts/oe-pkgdata-util: improve help text and command line parsing
* Use optparse to parse command line
* Make help text actually helpful by describing what each command does
* Drop comment at the top listing the commands which is now superfluous
(From OE-Core rev: feb317513fff638ad7abdba8ab34b8413f0ab055)
I get these errors for any image I try to create:
| Traceback (most recent call last): | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 334, in <module> | main() | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 319, in main | glob(args[1:], parser.print_help) | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 143, in glob | if debug: | NameError: global name 'debug' is not defined
The attached patch fixes the problem, but I'm not sure if it is 100% correct.
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
scripts/oe-pkgdata-util +2 -0
@@ -283,8 +283,10 @@ def find_path(args, usage): if fnmatch.fnmatchcase(fullpth, targetpath): print("%s: %s" % (fn, fullpth)) +debug = False def main(): + global debug parser = optparse.OptionParser( usage = '''%prog [options] <command> <arguments>
Quoted 33 lines · On Tuesday 29 October 2013 09:08:01 Gary Thomas wrote:
Since this commit:
commit8b42409dca729b7abbbdac04f533e161de86a3ef
Author: Paul Eggleton <[email protected]>
Date: Fri Oct 18 15:19:58 2013 +0100
scripts/oe-pkgdata-util: improve help text and command line parsing* Use optparse to parse command line
* Make help text actually helpful by describing what each command does
* Drop comment at the top listing the commands which is now superfluous(From OE-Core rev:
feb317513fff638ad7abdba8ab34b8413f0ab055)Signed-off-by Paul Eggleton <[email protected]>Signed-off-by Richard Purdie <[email protected]>I get these errors for any image I try to create:
| Traceback (most recent call last): | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 334, in | <module> | | main() | | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 319, in | main | | glob(args[1:], parser.print_help) | | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 143, in | glob | | if debug: | NameError: global name 'debug' is not defined
Quoted 2 lines
The attached patch fixes the problem, but I'm not sure if it is 100% correct.
Oops. I'm working on a proper fix now, sorry for the hassle...
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 34 lines · Paul Eggleton
Quoted 33 lines · On Tuesday 29 October 2013 09:08:01 Gary Thomas wrote:
Since this commit:
commit8b42409dca729b7abbbdac04f533e161de86a3ef
Author: Paul Eggleton <[email protected]>
Date: Fri Oct 18 15:19:58 2013 +0100
scripts/oe-pkgdata-util: improve help text and command line parsing* Use optparse to parse command line
* Make help text actually helpful by describing what each command does
* Drop comment at the top listing the commands which is now superfluous(From OE-Core rev:
feb317513fff638ad7abdba8ab34b8413f0ab055)Signed-off-by Paul Eggleton <[email protected]>Signed-off-by Richard Purdie <[email protected]>I get these errors for any image I try to create:
| Traceback (most recent call last): | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 334, in | <module> | | main() | | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 319, in | main | | glob(args[1:], parser.print_help) | | File "/local/poky-cutting-edge/scripts/oe-pkgdata-util", line 143, in | glob | | if debug: | NameError: global name 'debug' is not defined
Quoted 4 lines
Quoted 2 lines
The attached patch fixes the problem, but I'm not sure if it is 100% correct.
Oops. I'm working on a proper fix now, sorry for the hassle...
I just tested the patch you send to the OE-core list & it works great.
Thanks
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------