diff options
author | XenHat | 2023-03-27 21:34:13 -0400 |
---|---|---|
committer | XenHat | 2023-03-27 21:34:13 -0400 |
commit | 34bf3ac0fddaa1ce9c9d4058e2df3cb617b93569 (patch) | |
tree | b354ee6106e64fd5315dddb4da2570ad4c8ed61f /compile.bash | |
parent | a0f769a34bd55cb766b9033926e1b6ac81294ebe (diff) | |
download | aur-34bf3ac0fddaa1ce9c9d4058e2df3cb617b93569.tar.gz |
Tentative fix for autobuild re-installing every build
Diffstat (limited to 'compile.bash')
-rwxr-xr-x | compile.bash | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/compile.bash b/compile.bash index 510983f5482d..1888be9ec78d 100755 --- a/compile.bash +++ b/compile.bash @@ -16,13 +16,15 @@ prepare() { if [[ -n "$USE_VENV" ]]; then venv fi - echo "Installing autobuild..." - pip install --upgrade certifi --quiet - pip3 install --upgrade llbase --quiet + if command -v autobuild >/dev/null 2>&1 && [[ "$(autobuild --version)" == "autobuild 9.0.0" ]]; then pip3 uninstall --yes autobuild --quiet + elif ! command -v autobuild; then + echo "Installing autobuild..." + pip3 install --upgrade certifi --quiet + pip3 install --upgrade llbase --quiet + pip3 install --no-cache --upgrade autobuild --quiet fi - pip3 install --no-cache --upgrade autobuild --quiet } build() { |