[Pkg-samba-maint] [samba] 03/08: Support SYSTEM_VERSION setting in deps.
Jelmer Vernooij
jelmer at moszumanska.debian.org
Fri Dec 18 13:10:14 UTC 2015
This is an automated email from the git hooks/post-receive script.
jelmer pushed a commit to branch experimental
in repository samba.
commit 04d6e3d07f77f8dd3117775851340e857e9183e2
Author: Jelmer Vernooij <jelmer at jelmer.uk>
Date: Fri Dec 18 01:24:37 2015 +0000
Support SYSTEM_VERSION setting in deps.
---
debian/autodeps.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/autodeps.py b/debian/autodeps.py
index fe1be64..f4104ed 100755
--- a/debian/autodeps.py
+++ b/debian/autodeps.py
@@ -79,8 +79,9 @@ def find_version(path):
v = open(path, 'r')
try:
for l in v.readlines():
- if l.startswith("VERSION = '"):
- return tuple([int(x) for x in l.strip()[len("VERSION = '"):-1].split(".")])
+ if l.startswith("VERSION = '") or l.startswith("SYSTEM_VERSION = '"):
+ (key, value) = l.split('=')
+ return tuple([int(x) for x in value.strip().strip("'").split(".")])
raise KeyError
finally:
v.close()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-samba/samba.git
More information about the Pkg-samba-maint
mailing list