fetch2/git: unify the nocheckout option format

make the nocheckout option format to be: default is "0",
use nocheckou=1 to set this option

with this patch, the format will be consistant with other bitbake options
like rebaseable

(Bitbake rev: bd51659f5ee521cb8e6631d5f26792ab573e6b30)

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Yu Ke 2011-05-26 15:29:37 +08:00 committed by Richard Purdie
parent 8a12fad293
commit 086479f386
1 changed files with 1 additions and 3 deletions

View File

@ -53,9 +53,7 @@ class Git(FetchMethod):
else:
ud.proto = "git"
ud.nocheckout = False
if 'nocheckout' in ud.parm:
ud.nocheckout = True
ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
# rebaseable means the upstream git repo may rebase in the future,
# and current revision may disappear from upstream repo