fix: install from local checkout and remove dead wo_deb_repo code
Some checks failed
CI / test WordOps (ubuntu-22.04) (push) Has been cancelled
CI / test WordOps (ubuntu-24.04) (push) Has been cancelled

- wo_install() now detects local setup.py and installs from it instead
  of always pulling from PyPI/GitHub (which installs the old upstream)
- Removed unused wo_deb_repo variable branches in variables.py that
  caused NameError on unsupported codenames
- OLS repo URL uses codename directly for all distros (same format)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-09 07:35:46 +01:00
parent 9c4e71a43c
commit 35efce33c5
2 changed files with 6 additions and 27 deletions

View File

@@ -552,7 +552,9 @@ wo_install() {
fi
fi
if [ "$wo_branch" = "master" ]; then
if [ -f ./setup.py ]; then
/opt/wo/bin/pip install -U . --upgrade-strategy=eager
elif [ "$wo_branch" = "master" ]; then
/opt/wo/bin/pip install -U wordops --upgrade-strategy=eager
else
/opt/wo/bin/pip install -I "git+https://github.com/WordOps/WordOps.git@$wo_branch#egg=wordops" --upgrade-strategy=eager