mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
591b97c6be
commit
8ef70163fc
@@ -50,7 +50,10 @@ def publish(args):
|
|||||||
|
|
||||||
# Ensure the SDK exists
|
# Ensure the SDK exists
|
||||||
if not os.path.exists(target_sdk):
|
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
|
return -1
|
||||||
|
|
||||||
if ':' in destination:
|
if ':' in destination:
|
||||||
|
|||||||
Reference in New Issue
Block a user