Fixed sdk from local file installation
[src/xds/xds-server.git] / scripts / sdks / agl / get-sdk-info
index c28f2e4..485d5fe 100755 (executable)
@@ -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}",