File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 - run : chmod +x transifex-util.py
4545 - name : Patch helper for cross-version Doc Makefile compatibility
4646 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
4858 grep -n "JOBS=1" transifex-util.py
4959 - run : ./transifex-util.py recreate_tx_config --language ru --project-slug python-newest --version ${{ matrix.version }}
5060 env :
You can’t perform that action at this time.
0 commit comments