diff options
author | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-09-21 17:48:01 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2022-09-21 17:48:01 +0300 |
commit | bd72bce2ba6eac53bafba601ea80024f1e5ec8cd (patch) | |
tree | 3b4a4874c62d2af8859e8261eba178bca667fa55 | |
parent | fd61004c38bbd5d97fb2c36fedab014f3d6c36d9 (diff) | |
download | missing-dependencies-bd72bce2ba6eac53bafba601ea80024f1e5ec8cd.tar.gz |
fix: convert tilde in Debian version into dash
Sponsored-by: pep.foundation
-rwxr-xr-x | debian-crate-packages | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian-crate-packages b/debian-crate-packages index 89f28ae..3f74fe1 100755 --- a/debian-crate-packages +++ b/debian-crate-packages @@ -6,8 +6,11 @@ import subprocess import sys +verbose = False + + def log(msg): - if True: + if verbose: sys.stderr.write(f"{msg}\n") sys.stderr.flush() @@ -49,6 +52,7 @@ def crate_version(version): if "+really" in version: version = version.split("really")[-1] version = strip_prefix(version, ".") + version = "-".join(version.split("~")) parts = version.split("-") if len(parts) == 1: return parts[0] |