summaryrefslogtreecommitdiffstats
path: root/src/debputy/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/debputy/version.py')
-rw-r--r--src/debputy/version.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/debputy/version.py b/src/debputy/version.py
index de56318..eb69c8f 100644
--- a/src/debputy/version.py
+++ b/src/debputy/version.py
@@ -55,6 +55,9 @@ if __version__ in ("N/A",):
except (subprocess.CalledProcessError, FileNotFoundError):
v = "N/A"
+ if v.startswith("archive/"):
+ v = v[8:]
+
if v.startswith("debian/"):
v = v[7:]
return v