mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
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
This commit is contained in:
parent
d794c10d96
commit
59e6059513
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user