All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] fetch2: introduce BB_GENERATE_MIRROR_VERSIONED_TARBALLS to enable classic versioned scm snapshots
@ 2011-09-22  8:58 Koen Kooi
  2011-09-22 18:11 ` Koen Kooi
  0 siblings, 1 reply; 2+ messages in thread
From: Koen Kooi @ 2011-09-22  8:58 UTC (permalink / raw)
  To: openembedded-core; +Cc: Koen Kooi, bitbake-devel

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




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

* Re: [RFC] fetch2: introduce BB_GENERATE_MIRROR_VERSIONED_TARBALLS to enable classic versioned scm snapshots
  2011-09-22  8:58 [RFC] fetch2: introduce BB_GENERATE_MIRROR_VERSIONED_TARBALLS to enable classic versioned scm snapshots Koen Kooi
@ 2011-09-22 18:11 ` Koen Kooi
  0 siblings, 0 replies; 2+ messages in thread
From: Koen Kooi @ 2011-09-22 18:11 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: bitbake-devel


Op 22 sep. 2011, om 10:58 heeft Koen Kooi het volgende geschreven:

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

Apart from the objections raised by Richard I've found 2 other problems with it:

1) it will force a cache invalidation each build
2) fetch2 witll *always* try to access the remote git repo, even if the SRCREV is already present in the local copy

Those aren't really bugs in my patch, but in the rebasable fetch2 code.


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

end of thread, other threads:[~2011-09-22 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-22  8:58 [RFC] fetch2: introduce BB_GENERATE_MIRROR_VERSIONED_TARBALLS to enable classic versioned scm snapshots Koen Kooi
2011-09-22 18:11 ` Koen Kooi

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.