From fc659a9a7b55aa8cf496e749ed463c22eb4acbdb Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Fri, 2 Mar 2018 17:13:39 -0800 Subject: [PATCH] don't error when we don't have requirements --- tools/pip_install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/pip_install.sh b/tools/pip_install.sh index 726a930f7..648af3c26 100755 --- a/tools/pip_install.sh +++ b/tools/pip_install.sh @@ -19,6 +19,10 @@ if [ "$CERTBOT_OLDEST" = 1 ]; then # remove any extras such as [dev] pkg_dir=$(echo $2 | cut -f1 -d\[) # remove any extras such as [dev] requirements="$pkg_dir/local-oldest-requirements.txt" + # packages like acme don't have any local oldest requirements + if [ ! -f "$requirements" ]; then + unset requirements + fi cp "$tools_dir/oldest_constraints.txt" "$test_constraints" else repo_root=$(dirname "$tools_dir")