From a93832c2e3058c55e183c487dde595bd42238bb0 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 27 Jun 2018 15:52:14 +0200 Subject: Fixed sdk from local file installation Rework sdk uuid management because previous code prevented to install local sdk using following command: xds-cli sdks install --file $HOME/xds-workspace/my_local_sdk.sh Change-Id: I20bac8a76d32b005a6775e936756c96048651766 Signed-off-by: Sebastien Douheret --- scripts/sdks/agl/get-sdk-info | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/sdks/agl/get-sdk-info') diff --git a/scripts/sdks/agl/get-sdk-info b/scripts/sdks/agl/get-sdk-info index c28f2e4..485d5fe 100755 --- a/scripts/sdks/agl/get-sdk-info +++ b/scripts/sdks/agl/get-sdk-info @@ -131,6 +131,8 @@ if [ "${UUID}" = "" ]; then UUID="basename ${curInstDir}" elif [ "$URL" != "" ]; then UUID=$(echo "$URL" | md5sum |cut -d' ' -f1) + elif [ "$filename" != "" ]; then + UUID=$(echo $(basename $filename) | md5sum |cut -d' ' -f1) else echo "UUID value must be specify using --uuid option." exit 1 @@ -147,6 +149,7 @@ fi read -r -d '' res <<- EndOfMessage { "name": "${profile}_${arch}_${version}", + "uuid": "${UUID}", "description": "AGL SDK ${arch} (version ${version})", "profile": "${profile}", "version": "${version}", -- cgit 1.2.3-korg