Merge "fail early when lates build information can not be fetched"
This commit is contained in:
commit
d6f43865ed
@ -65,7 +65,7 @@ else
|
||||
fi
|
||||
|
||||
DIB_CLOUD_SOURCE=${DIB_CLOUD_SOURCE:-"http://distfiles.gentoo.org/releases/amd64/autobuilds/latest-stage4-amd64-${SIGNED_SOURCE_SUFFIX}.txt"}
|
||||
BASE_IMAGE_FILE=${BASE_IMAGE_FILE:-"http://distfiles.gentoo.org/releases/amd64/autobuilds/$(curl ${DIB_CLOUD_SOURCE} -s | tail -n 1 | cut -d\ -f 1)"}
|
||||
BASE_IMAGE_FILE=${BASE_IMAGE_FILE:-"http://distfiles.gentoo.org/releases/amd64/autobuilds/$(curl ${DIB_CLOUD_SOURCE} -s -f | tail -n 1 | cut -d\ -f 1)"}
|
||||
BASE_IMAGE_FILE_SUFFIX=${BASE_IMAGE_FILE_SUFFIX:-"$(basename ${BASE_IMAGE_FILE} | cut -d. -f 2,3)"}
|
||||
SIGNATURE_FILE="${SIGNATURE_FILE:-${BASE_IMAGE_FILE}.DIGESTS.asc}"
|
||||
CACHED_FILE="${DIB_IMAGE_CACHE}/${FILENAME_BASE}.${BASE_IMAGE_FILE_SUFFIX}"
|
||||
|
@ -11,4 +11,4 @@ echo 'deb https://downloads.linux.hp.com/SDR/repo/ubuntu-hpdsa' $DIB_RELEASE ' m
|
||||
>> /etc/apt/sources.list.d/ubuntu-hpdsa.list
|
||||
|
||||
# Add the key
|
||||
curl https://downloads.linux.hp.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
|
||||
curl -f -s https://downloads.linux.hp.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
|
||||
|
@ -201,7 +201,7 @@ function get_repos_for_element(){
|
||||
tar -C $tmpdir -xzf $CACHE_PATH
|
||||
else
|
||||
echo "Fetching $REPONAME tarball from $REPOLOCATION"
|
||||
curl $REPOLOCATION | tar -C $tmpdir -xzf -
|
||||
curl -f $REPOLOCATION | tar -C $tmpdir -xzf -
|
||||
fi
|
||||
|
||||
sudo mkdir -p $REPO_DEST
|
||||
@ -223,7 +223,7 @@ function get_repos_for_element(){
|
||||
sudo cp $CACHE_PATH $REPO_DEST
|
||||
else
|
||||
echo "Fetching $REPONAME file from $REPOLOCATION"
|
||||
sudo curl $REPOLOCATION -o $REPO_DEST
|
||||
sudo curl -f $REPOLOCATION -o $REPO_DEST
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
Loading…
Reference in New Issue
Block a user