Handle TOX_CONSTRAINTS_FILE as well as UPPER_CONSTRAINTS_FILE
In I3f957187ed4f29fcf88db99cb79fb33b21a8dd8d we'd like to rename the use of UPPER_CONSTRAINTS_FILE to TOX_CONSTRAINTS_FILE so that we can reuse the logic for LOWER constraints file checking as well. Change-Id: I04066ca815814ecf66abe9cb385469969edead57
This commit is contained in:
parent
bd06273806
commit
9ffe3621ba
@ -87,9 +87,10 @@ function update_upper_constraints {
|
||||
return 0
|
||||
fi
|
||||
sed -i~ -e "s,{\(env:UPPER_CONSTRAINTS_FILE\)[^ ]*},{\1:$uc_url}," tox.ini
|
||||
sed -i~ -e "s,{\(env:TOX_CONSTRAINTS_FILE\)[^ ]*},{\1:$uc_url}," tox.ini
|
||||
if ! git diff --exit-code >/dev/null 2>&1 ; then
|
||||
git add tox.ini
|
||||
msg="Update UPPER_CONSTRAINTS_FILE for $branch"
|
||||
msg="Update TOX/UPPER_CONSTRAINTS_FILE for $branch"
|
||||
body="Update the URL to the upper-constraints file to point to the redirect
|
||||
rule on releases.openstack.org so that anyone working on this branch
|
||||
will switch to the correct upper-constraints list automatically when
|
||||
|
Loading…
Reference in New Issue
Block a user