File: rm-unknown-version-tag.diff

package info (click to toggle)
drgn 0.0.32-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,096 kB
  • sloc: ansic: 50,186; python: 46,462; awk: 423; makefile: 339; sh: 114
file content (24 lines) | stat: -rw-r--r-- 863 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Remove +unknown from version
 drgn's build scripts add this tag to the computed version if there are
 changes to the source tree (which is a given since we add `debian *`).
 Remove it and pre-generate the version file.
Author: Michel Lind <michel@michel-slm.name>
Forwarded: not-needed
Last-Update: 2025-04-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/setup.py
+++ b/setup.py
@@ -379,7 +379,7 @@ def get_version():
             r"AC_INIT\(\[libdrgn\], \[([^]]*)\]", f.read()
         ).group(1)
     # Default local version if we fail.
-    local_version = "+unknown"
+    local_version = ""
 
     # If this is a git repository, use a git-describe(1)-esque local version.
     # Otherwise, get the local version saved in the sdist.
--- /dev/null
+++ b/drgn/internal/version.py
@@ -0,0 +1 @@
+__version__ = "0.0.23"