summaryrefslogtreecommitdiffstats
path: root/scripts/oe-publish-sdk
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-03-31 21:53:32 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-31 23:01:37 +0100
commit8ef70163fc88128f2490f11bb1c28fa80b04cfb1 (patch)
tree4ec03fc3c8499d3f86f0573e95f0efcc41aa498a /scripts/oe-publish-sdk
parent591b97c6bee1bf25ba44309923059c6aa9a624bd (diff)
downloadpoky-8ef70163fc88128f2490f11bb1c28fa80b04cfb1.tar.gz
oe-publish-sdk: prevent specifying a directory for the SDK argument
The SDK argument is expected to be an installer .sh file; if a directory is specified we can get an ugly failure later on; best to check up front. Fixes [YOCTO #9065]. (From OE-Core rev: ce71f5c2fb8a7b473988da30bbb9bec95e8a6f5e) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-publish-sdk')
-rwxr-xr-xscripts/oe-publish-sdk5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/oe-publish-sdk b/scripts/oe-publish-sdk
index 2b6e9bc21c..992de19955 100755
--- a/scripts/oe-publish-sdk
+++ b/scripts/oe-publish-sdk
@@ -50,7 +50,10 @@ def publish(args):
50 50
51 # Ensure the SDK exists 51 # Ensure the SDK exists
52 if not os.path.exists(target_sdk): 52 if not os.path.exists(target_sdk):
53 logger.error("%s doesn't exist" % target_sdk) 53 logger.error("Specified SDK %s doesn't exist" % target_sdk)
54 return -1
55 if os.path.isdir(target_sdk):
56 logger.error("%s is a directory - expected path to SDK installer file" % target_sdk)
54 return -1 57 return -1
55 58
56 if ':' in destination: 59 if ':' in destination: