Created attachment 2464 [details] Proposed patch Executing checkuri on a rule with git repository in SRC_URI does not report errors when working offline because wrong repository url is passed to the ls-remote command. For example "bitbake -c checkuri glibc" command executes: "git -c core.fsyncobjectfiles=0 ls-remote git://sourceware.org/git/glibc.git;branch=release/2.21/master" command in a shell subprocess to determine if url is valid. Shell subprocess executes in fact 2 commands: "git -c core.fsyncobjectfiles=0 ls-remote git://sourceware.org/git/glibc.git" and "branch=release/2.21/master" First one returns 127 or 128 depending on error but second one returns 0 because it is just env variable setup. Therefore we're not catching connection error. To reproduce: Go offline and execute bitbake -c checkuri glibc no error will be reported To fix: pass proper repository url without arguments after a semicolon. Proposed patch in an attachment.
Thanks for the patch, http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=7310c3c925282e52b44351a5dfd7f7d882d2dcc4
Verified on master d302c98822efe2cb78a63b620aed1b94b4ed4a68 using this command with network enabled and disabled: bitbake -c checkuri m4