[poky] [PATCH 2/4] fetcher2 git: unify the nocheckout option format
Yu Ke
ke.yu at intel.com
Fri May 27 01:53:39 PDT 2011
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 at intel.com>
---
bitbake/lib/bb/fetch2/git.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 12dabe3..a05402a 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -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
--
1.7.0.4
More information about the poky
mailing list