[oe] [RFC] bitbake git fetcher fix
Otavio Salvador
otavio at debian.org
Tue Jan 6 14:12:49 UTC 2009
Hello,
I've found a issue when using current GIT fetcher and bellow patch
fixes it for me; could someone take a look at it and commit if it does
look fine?
Cheers,
Index: lib/bb/fetch/git.py
===================================================================
--- lib/bb/fetch/git.py (revisão 1150)
+++ lib/bb/fetch/git.py (cópia de trabalho)
@@ -42,19 +42,17 @@
ud.proto = ud.parm['protocol']
ud.branch = ud.parm.get("branch", "master")
+ ud.tag = None
tag = Fetch.srcrev_internal_helper(ud, d)
if tag is True:
ud.tag = self.latest_revision(url, ud, d)
- elif tag:
+ elif tag and tag != "1":
ud.tag = tag
- if not ud.tag:
+ if not ud.tag or ud.tag == "master":
ud.tag = self.latest_revision(url, ud, d)
- if ud.tag == "master":
- ud.tag = self.latest_revision(url, ud, d)
-
ud.localfile = data.expand('git_%s%s_%s.tar.gz' % (ud.host, ud.path.replace('/', '.'), ud.tag), d)
return os.path.join(data.getVar("DL_DIR", d, True), ud.localfile)
--
O T A V I O S A L V A D O R
---------------------------------------------
E-mail: otavio at debian.org UIN: 5906116
GNU/Linux User: 239058 GPG ID: 49A5F855
Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
you the whole house."
More information about the Openembedded-devel
mailing list