Cleanup useless SDKs from SDKs db/list 09/17109/1
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 9 Oct 2018 13:25:33 +0000 (15:25 +0200)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Tue, 9 Oct 2018 13:29:00 +0000 (15:29 +0200)
Also ignored some known file when parsing SDK directory

Change-Id: I8f9f127325b7743ebe3866d1145f928ded49322b
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
scripts/sdks/agl/_build-sdks-json.sh

index b97edd0..60e0e71 100755 (executable)
@@ -24,21 +24,15 @@ SDK_AGL_IOTBZH_BASEURL="http://iot.bzh/download/public/XDS"
 DOWNLOADABLE_URLS="
     ${SDK_AGL_BASEURL}/snapshots/master/latest/*/deploy/sdk
 
-    ${SDK_AGL_BASEURL}/release/dab/4.0.2/*/deploy/sdk
+    ${SDK_AGL_BASEURL}/release/dab/4.0.3/*/deploy/sdk
 
-    ${SDK_AGL_BASEURL}/release/eel/5.0.0/*/deploy/sdk
-    ${SDK_AGL_BASEURL}/release/eel/5.0.1/*/deploy/sdk
-    ${SDK_AGL_BASEURL}/release/eel/5.0.2/*/deploy/sdk
-    ${SDK_AGL_BASEURL}/release/eel/5.0.3/*/deploy/sdk
     ${SDK_AGL_BASEURL}/release/eel/5.1.0/*/deploy/sdk
     ${SDK_AGL_BASEURL}/release/eel/latest/*/deploy/sdk
 
-    ${SDK_AGL_BASEURL}/release/flounder/5.99.6/*/deploy/sdk
     ${SDK_AGL_BASEURL}/release/flounder/6.0.0/*/deploy/sdk
     ${SDK_AGL_BASEURL}/release/flounder/latest/*/deploy/sdk
 
     ${SDK_AGL_IOTBZH_BASEURL}/images/dab-m3ulcb/*/sdk
-    ${SDK_AGL_IOTBZH_BASEURL}/images/dab-raspi/*/sdk
 
     ${SDK_AGL_IOTBZH_BASEURL}/images/eel-intel-corei7-64/*/sdk
     ${SDK_AGL_IOTBZH_BASEURL}/images/eel-m3ulcb/*/sdk
@@ -78,6 +72,9 @@ for url in $(echo $urls); do
 
     for sdkFile in $(echo ${files}); do
 
+               # Ignored silent some known files
+               [[ "${sdkFile}" = "agl-sdk-latest.sh" ]] && continue
+
         # assume that sdk name follow this format :
         #  _PROFILE_-_COMPILER_ARCH_-_TARGET_-crosssdk-_ARCH_-toolchain-_VERSION_.sh
         # for example: