]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fetch2/git: unify the nocheckout option format
authorYu Ke <ke.yu@intel.com>
Thu, 26 May 2011 07:29:37 +0000 (15:29 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 27 May 2011 16:19:36 +0000 (17:19 +0100)
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

Signed-off-by: Yu Ke <ke.yu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/git.py

index 12dabe37066923b7de5b99a4fb15a6fb9a02e1fa..a05402a311860407dee7b2867262335b5006ac48 100644 (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