summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-05-26 15:29:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-27 17:55:50 +0100
commit086479f3868771bdb4669e72f410dc1eb89d8bc6 (patch)
tree12a646078770fbf6855fc8214c0d333bfd544352 /bitbake/lib/bb
parent8a12fad29323b8e23854094b721fbb682f9875a6 (diff)
downloadpoky-086479f3868771bdb4669e72f410dc1eb89d8bc6.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/git.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 12dabe3706..a05402a311 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -53,9 +53,7 @@ class Git(FetchMethod):
53 else: 53 else:
54 ud.proto = "git" 54 ud.proto = "git"
55 55
56 ud.nocheckout = False 56 ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
57 if 'nocheckout' in ud.parm:
58 ud.nocheckout = True
59 57
60 # rebaseable means the upstream git repo may rebase in the future, 58 # rebaseable means the upstream git repo may rebase in the future,
61 # and current revision may disappear from upstream repo 59 # and current revision may disappear from upstream repo