[bitbake-devel] [RFC] fetch2: introduce BB_GENERATE_MIRROR_VERSIONED_TARBALLS to enable classic versioned scm snapshots
Koen Kooi
koen at dominion.thruhere.net
Thu Sep 22 08:58:24 UTC 2011
When enabled fetch2 will generate tarballs with the SRCREV embbeded like so:
git2_git.pingu.fi.xf86-video-omapfb_28c006c94e57ea71df11ec4fff79d7ffcfc4860f.tar.gz
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
lib/bb/fetch2/git.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py
index fb6125c..f889562 100644
--- a/lib/bb/fetch2/git.py
+++ b/lib/bb/fetch2/git.py
@@ -93,7 +93,7 @@ class Git(FetchMethod):
ud.nocheckout = ud.parm.get("nocheckout","0") == "1"
- ud.rebaseable = ud.parm.get("rebaseable","0") == "1"
+ ud.rebaseable = ud.parm.get("rebaseable","0") == "1" or ((data.getVar("BB_GENERATE_MIRROR_VERSIONED_TARBALLS", d, True) or "0") != "0")
branches = ud.parm.get("branch", "master").split(',')
if len(branches) != len(ud.names):
--
1.6.6.1
More information about the bitbake-devel
mailing list