summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-16 10:54:24 +0300
committerLars Wirzenius <liw@liw.fi>2023-10-16 10:54:24 +0300
commit770d47a2d258b9b33f3520bf53623da0bc5e3da7 (patch)
tree86b962013b6bdff17ed42982fb752c99749bfa26
parent775c5dd8f629889e5369fe450e9e6b3722f74551 (diff)
downloadmissing-dependencies-770d47a2d258b9b33f3520bf53623da0bc5e3da7.tar.gz
fix: or workaround: drop everything after a "+" in version numbersHEADmain
This isn't quite precise, but the semver crate's version parsing can't handle them. Rust crates packaged in Debian shouldn't have them, anyway. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
-rwxr-xr-xdebian-crate-packages2
1 files changed, 2 insertions, 0 deletions
diff --git a/debian-crate-packages b/debian-crate-packages
index 3f74fe1..0c67401 100755
--- a/debian-crate-packages
+++ b/debian-crate-packages
@@ -52,6 +52,8 @@ def crate_version(version):
if "+really" in version:
version = version.split("really")[-1]
version = strip_prefix(version, ".")
+ elif "+" in version:
+ version = version.split("+", 1)[0]
version = "-".join(version.split("~"))
parts = version.split("-")
if len(parts) == 1: