summaryrefslogtreecommitdiffstats
path: root/tools/sync-docs.py
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-09-10 17:37:04 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-09-10 20:20:01 +0200
commit59e6059513ea53954176096152b8c04f20198cbf (patch)
tree910282954bd13fde65f64465c55200634198226a /tools/sync-docs.py
parentcryptsetup: use the new crypt_token_set_external_path() API if available (diff)
downloadsystemd-59e6059513ea53954176096152b8c04f20198cbf.tar.xz
systemd-59e6059513ea53954176096152b8c04f20198cbf.zip
doc-sync: strip point release from version before uploading
We create subdirectories for each major release, but not for point releases so strip the suffix if it is present
Diffstat (limited to 'tools/sync-docs.py')
-rwxr-xr-xtools/sync-docs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/sync-docs.py b/tools/sync-docs.py
index 95436e2710..86fe1a8ed7 100755
--- a/tools/sync-docs.py
+++ b/tools/sync-docs.py
@@ -94,6 +94,8 @@ def get_latest_version():
def main(version, directory, www_target):
index_filename = os.path.join(directory, "index.json")
nav_filename = os.path.join(directory, "nav.js")
+ # The upload directory does not contain point release suffixes
+ version = re.sub(r"\..+$", "", version)
current_branch = subprocess.check_output(["git", "branch", "--show-current"], text=True).strip()