| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,17 @@ jobs: | |||
| 44 | 44 | - run: chmod +x transifex-util.py | |
| 45 | 45 | - name: Patch helper for cross-version Doc Makefile compatibility | |
| 46 | 46 | run: | | |
| 47 | - sed -i 's|_call("make -C cpython/Doc/ gettext")|_call("make -C cpython/Doc/ JOBS=1 gettext || make -C cpython/Doc/ JOBS=1 build BUILDER=gettext")|' transifex-util.py | ||
| 47 | + python - <<'PY' | ||
| 48 | + from pathlib import Path | ||
| 49 | + | ||
| 50 | + p = Path("transifex-util.py") | ||
| 51 | + old = '_call("make -C cpython/Doc/ gettext")' | ||
| 52 | + new = '_call("make -C cpython/Doc/ JOBS=1 gettext || make -C cpython/Doc/ JOBS=1 build BUILDER=gettext")' | ||
| 53 | + s = p.read_text() | ||
| 54 | + if old not in s: | ||
| 55 | + raise SystemExit("Expected pattern was not found in transifex-util.py") | ||
| 56 | + p.write_text(s.replace(old, new)) | ||
| 57 | + PY | ||
| 48 | 58 | grep -n "JOBS=1" transifex-util.py | |
| 49 | 59 | - run: ./transifex-util.py recreate_tx_config --language ru --project-slug python-newest --version ${{ matrix.version }} | |
| 50 | 60 | env: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments