diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-03-31 21:53:32 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-03-31 13:18:12 +0100 |
commit | ce71f5c2fb8a7b473988da30bbb9bec95e8a6f5e (patch) | |
tree | fb96ac28e614aac97b58ed1576d1ca2e8f541894 | |
parent | 2bfed75c48a6f6596ded9cb64cb96f00510f914e (diff) | |
download | openembedded-core-ce71f5c2fb8a7b473988da30bbb9bec95e8a6f5e.tar.gz openembedded-core-ce71f5c2fb8a7b473988da30bbb9bec95e8a6f5e.tar.bz2 openembedded-core-ce71f5c2fb8a7b473988da30bbb9bec95e8a6f5e.zip |
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].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/oe-publish-sdk | 5 |
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): # Ensure the SDK exists if not os.path.exists(target_sdk): - logger.error("%s doesn't exist" % target_sdk) + logger.error("Specified SDK %s doesn't exist" % target_sdk) + return -1 + if os.path.isdir(target_sdk): + logger.error("%s is a directory - expected path to SDK installer file" % target_sdk) return -1 if ':' in destination: |