diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-10-16 10:54:24 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-10-16 10:54:24 +0300 |
commit | 770d47a2d258b9b33f3520bf53623da0bc5e3da7 (patch) | |
tree | 86b962013b6bdff17ed42982fb752c99749bfa26 | |
parent | 775c5dd8f629889e5369fe450e9e6b3722f74551 (diff) | |
download | missing-dependencies-main.tar.gz |
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-x | debian-crate-packages | 2 |
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: |