[oe-commits] [openembedded-core] 11/69: oe-publish-sdk: drop SDK installer file from published output
git at git.openembedded.org
git at git.openembedded.org
Wed Mar 23 14:25:59 UTC 2016
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit a9ec72b7897ffc0b901c1ccbcbe3cabbc7ac41ee
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Mon Mar 21 18:14:06 2016 +1300
oe-publish-sdk: drop SDK installer file from published output
We don't really need the SDK installer in the published output, for two
reasons:
1) The directory produced is for the consumption of devtool sdk-update,
and the installer isn't used by that at all
2) It wouldn't really make sense to point users at the update directory
to download the SDK installer because it contains a bunch of things
that aren't meant for manual download, so it wouldn't be very tidy.
Leaving the file present can mislead you into thinking the opposite of
both of the above.
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/oe-publish-sdk | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index 9e4f1bf..e91888f 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -53,6 +53,7 @@ def publish(args):
else:
is_remote = False
dest_sdk = os.path.join(destination, sdk_basename)
+ destdir = destination
# Making sure the directory exists
logger.debug("Making sure the destination directory exists")
@@ -83,16 +84,19 @@ def publish(args):
# Unpack the SDK
logger.info("Unpacking SDK")
+ cleanupfiles = [dest_sdk, os.path.join(destdir, 'ext-sdk-prepare.py')]
if not is_remote:
cmd = "sh %s -n -y -d %s" % (dest_sdk, destination)
ret = subprocess.call(cmd, shell=True)
if ret == 0:
logger.info('Successfully unpacked %s to %s' % (dest_sdk, destination))
+ for cleanupfile in cleanupfiles:
+ os.remove(cleanupfile)
else:
logger.error('Failed to unpack %s to %s' % (dest_sdk, destination))
return ret
else:
- cmd = "ssh %s 'sh %s -n -y -d %s'" % (host, dest_sdk, destdir)
+ cmd = "ssh %s 'sh %s -n -y -d %s && rm -f %s'" % (host, dest_sdk, destdir, ' '.join(cleanupfiles))
ret = subprocess.call(cmd, shell=True)
if ret == 0:
logger.info('Successfully unpacked %s to %s' % (dest_sdk, destdir))
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list