Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] buildhistory fix
@ 2011-12-05 18:28 Paul Eggleton
  2011-12-05 18:28 ` [PATCH 1/1] classes/buildhistory: do not save old packagehistory files by default Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2011-12-05 18:28 UTC (permalink / raw)
  To: openembedded-core

Because of a screw-up by me when I fixed the copyright date in the
buildhistory branch, a previous version of the tree got pushed and the
default to not create package history files for every version got lost.
This patch restores the functionality.

(To be clear, this change *was* in the original RFC pull request.)

The following changes since commit d512a41ed8843a66ed9c5c5978c5f33248083464:

  libx11-trim: Fix keysymdir configure option mismatch (2011-12-05 16:47:50 +0000)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib paule/buildhistory-fixes
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/buildhistory-fixes

Paul Eggleton (1):
  classes/buildhistory: do not save old packagehistory files by default

 meta/classes/buildhistory.bbclass |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

-- 
1.7.5.4




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

* [PATCH 1/1] classes/buildhistory: do not save old packagehistory files by default
  2011-12-05 18:28 [PATCH 0/1] buildhistory fix Paul Eggleton
@ 2011-12-05 18:28 ` Paul Eggleton
  2011-12-05 22:48   ` Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2011-12-05 18:28 UTC (permalink / raw)
  To: openembedded-core

Disable storing package history as version named files unless
BUILDHISTORY_KEEP_VERSIONS is set to 1; otherwise the adds of these
files that duplicate what is already in git anyway is just noise in the
git log.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/buildhistory.bbclass |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 1859961..e4534e9 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -258,8 +258,13 @@ def write_latestlink(pkg, pe, pv, pr, d):
 		filedir = os.path.join(pkghistdir, pkg)
 	else:
 		filedir = pkghistdir
-	rm_link(os.path.join(filedir, "latest"))
-	shutil.copy(os.path.join(filedir, "%s:%s-%s" % (pe, pv, pr)), os.path.join(filedir, "latest"))
+	latest_file = os.path.join(filedir, "latest")
+	ver_file = os.path.join(filedir, "%s:%s-%s" % (pe, pv, pr))
+	rm_link(latest_file)
+	if d.getVar('BUILDHISTORY_KEEP_VERSIONS', True) == '1':
+		shutil.copy(ver_file, latest_file)
+	else:
+		shutil.move(ver_file, latest_file)
 
 
 buildhistory_get_image_installed() {
-- 
1.7.5.4




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

* Re: [PATCH 1/1] classes/buildhistory: do not save old packagehistory files by default
  2011-12-05 18:28 ` [PATCH 1/1] classes/buildhistory: do not save old packagehistory files by default Paul Eggleton
@ 2011-12-05 22:48   ` Richard Purdie
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2011-12-05 22:48 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Mon, 2011-12-05 at 18:28 +0000, Paul Eggleton wrote:
> Disable storing package history as version named files unless
> BUILDHISTORY_KEEP_VERSIONS is set to 1; otherwise the adds of these
> files that duplicate what is already in git anyway is just noise in the
> git log.
> 
> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
> ---
>  meta/classes/buildhistory.bbclass |    9 +++++++--
>  1 files changed, 7 insertions(+), 2 deletions(-)

Merged to master, thanks.

Richard




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

end of thread, other threads:[~2011-12-05 22:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-05 18:28 [PATCH 0/1] buildhistory fix Paul Eggleton
2011-12-05 18:28 ` [PATCH 1/1] classes/buildhistory: do not save old packagehistory files by default Paul Eggleton
2011-12-05 22:48   ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox