Bug 9086

Summary: devtool add throws a TypeError
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Randy Witt <randy.e.witt>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact: Alexandru Georgescu <alexandru.c.georgescu>
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, meta.mr.watcher, meta.watcher
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Randy Witt 2016-02-09 21:56:30 UTC
/builds/poky-builds/master% devtool add ~/src/poky
Traceback (most recent call last):
  File "/home/rewitt/src/poky/scripts/devtool", line 305, in <module>
    ret = main()
  File "/home/rewitt/src/poky/scripts/devtool", line 292, in main
    ret = args.func(args, config, basepath, workspace)
  File "/home/rewitt/src/poky/scripts/lib/devtool/standard.py", line 54, in add
    elif '://' in args.srctree:
TypeError: argument of type 'NoneType' is not iterable

I tried multiple different source directories and the same exception was generated.
Comment 2 Alexandru Georgescu 2016-02-26 13:10:02 UTC
Verified with b1f23d1254682866236bfaeb843c0d8aa332efc2