Bug 2052

Summary: bitbake-prserv-tool import failed with no PRSERV set
Product: [Build System, Metadata & Runtime] BitBake Reporter: Jiajun Xu <jiajun.xu>
Component: bitbakeAssignee: Lianhao Lu <lianhao.lu>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: unspecified   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2012-03-02 08:56:43 UTC
tree/branch: poky/1.2_M3
commit: 320558f494c618f53e0c773db3ea0109476e8359

With 1.2 M3, if we run "bitbake-preserv-tool import" to import a .inc file without setting PRSERV_HOST and PRSERV_PORT in local.conf, bitbake will report error and never return a value.
Error as below:
######
jxu49@vt-nhm4:~/osel/m3/pr$ bitbake-prserv-tool import ../build/export.inc
ERROR: Connecting to PR service None:None failed: int() argument must be a string or a number, not 'NoneType'################################################################################  | ETA:  00:00:00
ERROR: Execution of event handler 'primport_handler' failed
ERROR: Command execution failed: Exited with 1
######
Comment 3 Jiajun Xu 2012-04-05 15:53:52 UTC
Verify the bug as fixed in 1.2 M4 testing with following commit:

tree/branch: poky/1.2_M4
commit: da6233ea034f35eff59306fdad31f318c340c359