All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] bitbake git fetcher fix
@ 2009-01-06 14:12 Otavio Salvador
  2009-01-06 15:41 ` Koen Kooi
  0 siblings, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2009-01-06 14:12 UTC (permalink / raw)
  To: openembedded-devel

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@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."



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-01-06 18:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 14:12 [RFC] bitbake git fetcher fix Otavio Salvador
2009-01-06 15:41 ` Koen Kooi
2009-01-06 16:47   ` Richard Purdie
2009-01-06 17:55     ` Koen Kooi
2009-01-06 18:25     ` Otavio Salvador
2009-01-06 18:24   ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.