Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 11/13] version: use the passed in value
Date: Tue, 06 Oct 2015 15:06:14
Message-Id: 1444143929-26705-11-git-send-email-vapier@gentoo.org
In Reply to: [gentoo-catalyst] [PATCH 01/13] lint: fix duplicate fcntl import by Mike Frysinger
1 The get_git_version function takes a |version| argument, but doesn't
2 actually use it, which makes calls to the function with a version do
3 nothing. Tweak the function to use the arg in the way it looks like
4 it intended.
5 ---
6 catalyst/version.py | 2 +-
7 1 file changed, 1 insertion(+), 1 deletion(-)
8
9 diff --git a/catalyst/version.py b/catalyst/version.py
10 index 5deb4d7..3b82988 100644
11 --- a/catalyst/version.py
12 +++ b/catalyst/version.py
13 @@ -31,7 +31,7 @@ def get_git_version(version=__version__):
14 s = ('vcs version %s, date %s' %
15 (version_info['rev'], version_info['date']))
16
17 - _ver = 'Catalyst %s\n%s' % (__version__, s)
18 + _ver = 'Catalyst %s\n%s' % (version, s)
19
20 return _ver
21
22 --
23 2.5.2