Fix a regression in generate_upper_constraints.sh

Commit 041c1795db has an issue that
prevents building IPA when requirements are not available locally.

Change-Id: I93d5fdb599315922f35a3caaf311b14d8a74a858
Story: #2004776
Task: #28901
This commit is contained in:
Dmitry Tantsur 2019-01-16 18:36:13 +01:00
parent 6be37298bd
commit 20a4887824
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ copy_new_requirements_uc() {
copy "/opt/stack/new/requirements/upper-constraints.txt" "${DESTINATION}"
elif [ -e "/opt/stack/requirements" ]; then
copy "/opt/stack/requirements/upper-constraints.txt" "${DESTINATION}"
else
log "No local requirements repository, will download upper-constraints"
# Allow the caller to handle the failure
return 1
fi
}