All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] toaster patchset pull request
@ 2014-03-31 16:39 Alex DAMIAN
  2014-03-31 16:39 ` [PATCH 1/2] sstate.bbclass: update missed sstate event Alex DAMIAN
  2014-03-31 16:39 ` [PATCH 2/2] toaster.bbclass: the license.manifest is located in DEPLOY_DIR Alex DAMIAN
  0 siblings, 2 replies; 3+ messages in thread
From: Alex DAMIAN @ 2014-03-31 16:39 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexandru DAMIAN

From: Alexandru DAMIAN <alexandru.damian@intel.com>

Hello,

This is a Toaster pull request. The patches have been reviewed on the 
toaster mailinglist.

Can you please pull ?

Thanks,
Alex

The following changes since commit 8210928e847fda7dbc145a94372b0beaf653a4f9:

  yocto-bsps: remove linux-yocto 3.8 bbappend (2014-03-30 23:53:00 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib adamian/20140331-submission
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=adamian/20140331-submission

Alexandru DAMIAN (1):
  sstate.bbclass: update missed sstate event

Cristiana Voicu (1):
  toaster.bbclass: the license.manifest is located in DEPLOY_DIR

 meta/classes/sstate.bbclass  | 12 ++++++++++--
 meta/classes/toaster.bbclass |  4 ++--
 2 files changed, 12 insertions(+), 4 deletions(-)

-- 
1.9.1



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

* [PATCH 1/2] sstate.bbclass: update missed sstate event
  2014-03-31 16:39 [PATCH 0/2] toaster patchset pull request Alex DAMIAN
@ 2014-03-31 16:39 ` Alex DAMIAN
  2014-03-31 16:39 ` [PATCH 2/2] toaster.bbclass: the license.manifest is located in DEPLOY_DIR Alex DAMIAN
  1 sibling, 0 replies; 3+ messages in thread
From: Alex DAMIAN @ 2014-03-31 16:39 UTC (permalink / raw)
  To: openembedded-core; +Cc: Alexandru DAMIAN

From: Alexandru DAMIAN <alexandru.damian@intel.com>

This is a patch to update the missed sstate event with
info about the sstate files locations that were found.
It's needed as to display the found file in the toaster ui.

Also fixes a bug where a setscene task may have appeared in the
missed list even if it was found in a sstate mirror.

Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
 meta/classes/sstate.bbclass | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 25b8d72..f761909 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -690,6 +690,8 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d):
                 fetcher.checkstatus()
                 bb.debug(2, "SState: Successful fetch test for %s" % srcuri)
                 ret.append(task)
+                if task in missed:
+                    missed.remove(task)
             except:
                 missed.append(task)
                 bb.debug(2, "SState: Unsuccessful fetch test for %s" % srcuri)
@@ -697,9 +699,15 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d):
 
     inheritlist = d.getVar("INHERIT", True)
     if "toaster" in inheritlist:
-        evdata = []
+        evdata = {'missed': [], 'found': []};
         for task in missed:
-            evdata.append( (sq_fn[task], sq_task[task], sq_hash[task], generate_sstatefn(spec, sq_hash[task],d) ) )
+            spec, extrapath, tname = getpathcomponents(task, d)
+            sstatefile = d.expand(extrapath + generate_sstatefn(spec, sq_hash[task], d) + "_" + tname + ".tgz")
+            evdata['missed'].append( (sq_fn[task], sq_task[task], sq_hash[task], sstatefile ) )
+        for task in ret:
+            spec, extrapath, tname = getpathcomponents(task, d)
+            sstatefile = d.expand(extrapath + generate_sstatefn(spec, sq_hash[task], d) + "_" + tname + ".tgz")
+            evdata['found'].append( (sq_fn[task], sq_task[task], sq_hash[task], sstatefile ) )
         bb.event.fire(bb.event.MetadataEvent("MissedSstate", evdata), d)
 
     return ret
-- 
1.9.1



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

* [PATCH 2/2] toaster.bbclass: the license.manifest is located in DEPLOY_DIR
  2014-03-31 16:39 [PATCH 0/2] toaster patchset pull request Alex DAMIAN
  2014-03-31 16:39 ` [PATCH 1/2] sstate.bbclass: update missed sstate event Alex DAMIAN
@ 2014-03-31 16:39 ` Alex DAMIAN
  1 sibling, 0 replies; 3+ messages in thread
From: Alex DAMIAN @ 2014-03-31 16:39 UTC (permalink / raw)
  To: openembedded-core

From: Cristiana Voicu <cristiana.voicu@intel.com>

Replaced DEPLOY_DIR_IMAGE with DEPLOY_DIR

[YOCTO #6051]
Signed-off-by: Cristiana Voicu <cristiana.voicu@intel.com>
---
 meta/classes/toaster.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass
index f55a4d7..9fb2cec 100644
--- a/meta/classes/toaster.bbclass
+++ b/meta/classes/toaster.bbclass
@@ -299,10 +299,10 @@ python toaster_buildhistory_dump() {
 # dump information related to license manifest path
 
 python toaster_licensemanifest_dump() {
-    deploy_dir_image = d.getVar('DEPLOY_DIR_IMAGE', True);
+    deploy_dir = d.getVar('DEPLOY_DIR', True);
     image_name = d.getVar('IMAGE_NAME', True);
 
-    data = { 'deploy_dir_image' : deploy_dir_image, 'image_name' : image_name }
+    data = { 'deploy_dir' : deploy_dir, 'image_name' : image_name }
 
     bb.event.fire(bb.event.MetadataEvent("LicenseManifestPath", data), d)
 }
-- 
1.9.1



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

end of thread, other threads:[~2014-03-31 16:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-31 16:39 [PATCH 0/2] toaster patchset pull request Alex DAMIAN
2014-03-31 16:39 ` [PATCH 1/2] sstate.bbclass: update missed sstate event Alex DAMIAN
2014-03-31 16:39 ` [PATCH 2/2] toaster.bbclass: the license.manifest is located in DEPLOY_DIR Alex DAMIAN

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.