summaryrefslogtreecommitdiffstats
path: root/utils/bump_docker.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:57:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:57:07 +0000
commit46fc0a4b3dccce58c429f408c04cf5cda3af9fb5 (patch)
tree410d83c434319e0c6f8035cdfa60ae8957b1d909 /utils/bump_docker.py
parentAdding upstream version 7.3.7. (diff)
downloadsphinx-46fc0a4b3dccce58c429f408c04cf5cda3af9fb5.tar.xz
sphinx-46fc0a4b3dccce58c429f408c04cf5cda3af9fb5.zip
Adding upstream version 7.4.7.upstream/7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'utils/bump_docker.py')
-rwxr-xr-xutils/bump_docker.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/utils/bump_docker.py b/utils/bump_docker.py
index 8f385ae..570e5ec 100755
--- a/utils/bump_docker.py
+++ b/utils/bump_docker.py
@@ -26,8 +26,8 @@ SPHINX_VERSION_PREFIX = 'Sphinx=='
for file in DOCKERFILE_BASE, DOCKERFILE_LATEXPDF:
content = file.read_text(encoding='utf-8')
content = re.sub(
- rf'{re.escape(OPENCONTAINERS_VERSION_PREFIX)} = "{VERSION_PATTERN}"',
- rf'{OPENCONTAINERS_VERSION_PREFIX} = "{VERSION}"',
+ rf'{re.escape(OPENCONTAINERS_VERSION_PREFIX)}="{VERSION_PATTERN}"',
+ rf'{OPENCONTAINERS_VERSION_PREFIX}="{VERSION}"',
content,
)
content = re.sub(
@@ -39,16 +39,13 @@ for file in DOCKERFILE_BASE, DOCKERFILE_LATEXPDF:
def git(*args: str) -> None:
- ret = subprocess.run(
+ subprocess.run(
('git', *args),
- capture_output=True,
cwd=DOCKER_ROOT,
check=True,
text=True,
encoding='utf-8',
)
- print(ret.stdout)
- print(ret.stderr, file=sys.stderr)
git('checkout', 'master')