[lorax master/f22] include variant in the name for .treeinfo when it exists
Dennis Gilmore
dennis at ausil.us
Mon Mar 9 22:21:09 UTC 2015
if there is a variant set include that in the name, otherwise
all the variants end up having the same name set.
Signed-off-by: Dennis Gilmore <dennis at ausil.us>
---
src/pylorax/treeinfo.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/pylorax/treeinfo.py b/src/pylorax/treeinfo.py
index 6f3f620..692b08f 100644
--- a/src/pylorax/treeinfo.py
+++ b/src/pylorax/treeinfo.py
@@ -33,11 +33,16 @@ class TreeInfo(object):
self.c = ConfigParser.ConfigParser()
+ if variant:
+ name = "%s-%s-%s" % (product, variant, version)
+ else:
+ name = "%s-%s" % (product, version)
+
section = "general"
data = {"timestamp": time.time(),
"family": product,
"version": version,
- "name": "%s-%s" % (product, version),
+ "name": name,
"variant": variant or "",
"arch": basearch,
"packagedir": packagedir}
--
2.3.1
More information about the anaconda-patches
mailing list