As there is a delta file in the source directory in addition to the
image, both files are downloaded and in some situations the script tries
to build a delta not between the OLD and NEW image, but for example,
between the OLD image and the downloaded DELTA.
Change-Id: Ibafc63cf21b22b55221dd45eb946148076918aec
WGET_DEFAULT="wget --no-parent -r --no-verbose --no-directories"
WGET_BART="${WGET_DEFAULT} --user ${{ inputs.bart_id }} --password ${{ inputs.bart_key }}"
- WGET_SHA256SUMS="--accept SHA256SUMS"
- WGET_TARGZ="--accept .tar.gz"
+ WGET_SHA256SUMS="--accept=SHA256SUMS"
+ WGET_TARGZ="--accept=tizen*.tar.gz"
INPUT_SUMS=$(pwd)/${{ env.INPUT_SUMS }}
touch ${INPUT_SUMS}
fi
echo "Downloading $item..."
- DL="$([[ $item == "https://bart.sec.samsung.net/artifactory/"* ]] && echo ${WGET_BART} $3 $item || echo ${WGET_DEFAULT} $3 $item)"
+ DL="$([[ $item == "https://bart.sec.samsung.net/artifactory/"* ]] && echo ${WGET_BART} "$3" $item || echo ${WGET_DEFAULT} "$3" $item)"
+
if ! ${DL}; then
MSG="Failed to download $item."
echo "::error::${MSG}"