1 |
From 5074b2bfb36b6b9117f188588da55de3b5c01435 Mon Sep 17 00:00:00 2001 |
2 |
From: Brian Dolbec <dolsen@g.o> |
3 |
Date: Mon, 5 Dec 2016 11:56:02 -0800 |
4 |
Subject: [PATCH] portage/__init__.py: Fix live versioning to look for portage tags only |
5 |
|
6 |
--- |
7 |
pym/portage/__init__.py | 2 +- |
8 |
1 file changed, 1 insertion(+), 1 deletion(-) |
9 |
|
10 |
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py |
11 |
index 057dc6b..c8e8b56 100644 |
12 |
--- a/pym/portage/__init__.py |
13 |
+++ b/pym/portage/__init__.py |
14 |
@@ -631,7 +631,7 @@ if VERSION == 'HEAD': |
15 |
return VERSION |
16 |
if os.path.isdir(os.path.join(PORTAGE_BASE_PATH, '.git')): |
17 |
encoding = _encodings['fs'] |
18 |
- cmd = [BASH_BINARY, "-c", ("cd %s ; git describe --tags || exit $? ; " + \ |
19 |
+ cmd = [BASH_BINARY, "-c", ("cd %s ; git describe --match 'portage-*' || exit $? ; " + \ |
20 |
"if [ -n \"`git diff-index --name-only --diff-filter=M HEAD`\" ] ; " + \ |
21 |
"then echo modified ; git rev-list --format=%%ct -n 1 HEAD ; fi ; " + \ |
22 |
"exit 0") % _shell_quote(PORTAGE_BASE_PATH)] |
23 |
-- |
24 |
2.9.3 |
25 |
|
26 |
|
27 |
|
28 |
-- |
29 |
Brian Dolbec <dolsen> |