Skip to content

Commit

Permalink
Consider anything between build and arch as distro description.
Browse files Browse the repository at this point in the history
Since we don't check distro for now, it should be fine even if there are
some strange entryies inside it.
  • Loading branch information
Mikhail Sandakov committed Feb 15, 2024
1 parent 44e1984 commit 101a826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pleskdistup/common/src/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def _extract_with_build(self, version: str) -> None:
if suffix.startswith("vz"):
self.distro = suffix.split(".")[0]
else:
self.distro, self.arch = suffix.split(".")
self.distro, self.arch = suffix.rsplit(".", 1)
break

def _extract_no_build(self, version: str) -> None:
Expand Down

0 comments on commit 101a826

Please sign in to comment.