diff options
Diffstat (limited to 'scripts/oe-publish-sdk')
| -rwxr-xr-x | scripts/oe-publish-sdk | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk index 992de19955..e6cb7af861 100755 --- a/scripts/oe-publish-sdk +++ b/scripts/oe-publish-sdk | |||
| @@ -94,19 +94,17 @@ def publish(args): | |||
| 94 | 94 | ||
| 95 | # Unpack the SDK | 95 | # Unpack the SDK |
| 96 | logger.info("Unpacking SDK") | 96 | logger.info("Unpacking SDK") |
| 97 | cleanupfiles = [dest_sdk, os.path.join(destdir, 'ext-sdk-prepare.py')] | ||
| 98 | if not is_remote: | 97 | if not is_remote: |
| 99 | cmd = "sh %s -n -y -d %s" % (dest_sdk, destination) | 98 | cmd = "sh %s -p -y -d %s" % (dest_sdk, destination) |
| 100 | ret = subprocess.call(cmd, shell=True) | 99 | ret = subprocess.call(cmd, shell=True) |
| 101 | if ret == 0: | 100 | if ret == 0: |
| 102 | logger.info('Successfully unpacked %s to %s' % (dest_sdk, destination)) | 101 | logger.info('Successfully unpacked %s to %s' % (dest_sdk, destination)) |
| 103 | for cleanupfile in cleanupfiles: | 102 | os.remove(dest_sdk) |
| 104 | os.remove(cleanupfile) | ||
| 105 | else: | 103 | else: |
| 106 | logger.error('Failed to unpack %s to %s' % (dest_sdk, destination)) | 104 | logger.error('Failed to unpack %s to %s' % (dest_sdk, destination)) |
| 107 | return ret | 105 | return ret |
| 108 | else: | 106 | else: |
| 109 | cmd = "ssh %s 'sh %s -n -y -d %s && rm -f %s'" % (host, dest_sdk, destdir, ' '.join(cleanupfiles)) | 107 | cmd = "ssh %s 'sh %s -p -y -d %s && rm -f %s'" % (host, dest_sdk, destdir, dest_sdk) |
| 110 | ret = subprocess.call(cmd, shell=True) | 108 | ret = subprocess.call(cmd, shell=True) |
| 111 | if ret == 0: | 109 | if ret == 0: |
| 112 | logger.info('Successfully unpacked %s to %s' % (dest_sdk, destdir)) | 110 | logger.info('Successfully unpacked %s to %s' % (dest_sdk, destdir)) |
