From: Luca Boccassi Date: Tue, 10 Sep 2024 15:37:04 +0000 (+0200) Subject: doc-sync: strip point release from version before uploading X-Git-Tag: v257-rc1~494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e6059513ea53954176096152b8c04f20198cbf;p=thirdparty%2Fsystemd.git 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 --- diff --git a/tools/sync-docs.py b/tools/sync-docs.py index 95436e2710a..86fe1a8ed7e 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()