summaryrefslogtreecommitdiffstats
path: root/scripts/oe-publish-sdk
diff options
context:
space:
mode:
authorCostin Constantin <costin.c.constantin@intel.com>2015-10-22 17:16:12 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:24:25 +0000
commit369c53600e3faafa0111a8563af36ee46443d750 (patch)
treea6fc187ef36a70e02845f4012e9b4798ca89e9bd /scripts/oe-publish-sdk
parent8a555fe74acc098cb39c6d8f400451397e9e3d34 (diff)
downloadpoky-369c53600e3faafa0111a8563af36ee46443d750.tar.gz
scripts/oe-publish-sdk: create directory before making git repo
This patch fixes a small bug that prevents seting a git repo in exported SDK layers dir. Before setting a git repo, that directory needs to be created. [ YOCTO #6659 ] (From OE-Core rev: 47860e483d7a9b4440d1ed9bd96d724370887f58) Signed-off-by: Costin Constantin <costin.c.constantin@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-publish-sdk')
-rwxr-xr-xscripts/oe-publish-sdk4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index 1737c9f3bc..c4c35bda11 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -101,9 +101,9 @@ def publish(args):
101 101
102 # Setting up the git repo 102 # Setting up the git repo
103 if not is_remote: 103 if not is_remote:
104 cmd = 'set -e; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; fi; git add -A .; git commit -q -m "init repo" || true;' % destination 104 cmd = 'set -e; mkdir -p %s/layers; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; fi; git add -A .; git commit -q -m "init repo" || true;' % (destination, destination)
105 else: 105 else:
106 cmd = "ssh %s 'set -e; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; fi; git add -A .; git commit -q -m \"init repo\" || true;'" % (host, destdir) 106 cmd = "ssh %s 'set -e; mkdir-p %s/layers; cd %s/layers; if [ ! -e .git ]; then git init .; mv .git/hooks/post-update.sample .git/hooks/post-update; fi; git add -A .; git commit -q -m \"init repo\" || true;'" % (host, destdir, destdir)
107 ret = subprocess.call(cmd, shell=True) 107 ret = subprocess.call(cmd, shell=True)
108 if ret == 0: 108 if ret == 0:
109 logger.info('SDK published successfully') 109 logger.info('SDK published successfully')