[yocto] [yocto-autobuilder][PATCH 3/4] PublishLayerTarballs.py: fix command overwrite

Stefan Stanacar stefanx.stanacar at intel.com
Wed May 8 09:01:48 PDT 2013


command was overwritten, so the gzip archive was missing.
Also add a trailing slash to the second git archive prefix
otherwise we end up with dirs like poky-revscripts instead of poky-rev/scripts.

Signed-off-by: Stefan Stanacar <stefanx.stanacar at intel.com>
---
 .../site-packages/autobuilder/buildsteps/PublishLayerTarballs.py      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.py b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.py
index 2930d28..6f676be 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishLayerTarballs.py
@@ -44,8 +44,8 @@ class PublishLayerTarballs(ShellCommand):
         command = " git archive --format=tar HEAD "
         command = command + "--prefix=" + self.layername + "-" + revision + "/"
         command = command  +"| gzip > " + self.layername + "-" + revision + ".tar.gz; " 
-        command = " git archive --format=tar HEAD "
-        command = command + "--prefix=" + self.layername + "-" + revision 
+        command = command + " git archive --format=tar HEAD "
+        command = command + "--prefix=" + self.layername + "-" + revision + "/"
         command = command  +"| bzip2 -c > " + self.layername + "-" + revision + ".tar.bz2; " 
         command = command  +"md5sum " + self.layername + "-" + revision + ".tar.bz2 >> "
         command = command  + self.layername + "-" + revision + ".tar.bz2.md5sum; "
-- 
1.8.1.4




More information about the yocto mailing list