Neal Gompa 8c8af0
From 31653832d72ce7dc6203cb10133ba94b05880dab Mon Sep 17 00:00:00 2001
Neal Gompa 8c8af0
From: Lubomir Rintel <lkundrak@v3.sk>
Neal Gompa 8c8af0
Date: Mon, 5 Oct 2015 05:17:54 -0400
Neal Gompa 8c8af0
Subject: [PATCH 1/2] Set releasever
Neal Gompa 8c8af0
Neal Gompa 8c8af0
...so that $releasever is properly substituted in the kickstart repository
Neal Gompa 8c8af0
locations.
Neal Gompa 8c8af0
---
Neal Gompa 8c8af0
 appcreate/appliance.py  | 4 ++--
Neal Gompa 8c8af0
 tools/appliance-creator | 2 +-
Neal Gompa 8c8af0
 2 files changed, 3 insertions(+), 3 deletions(-)
Neal Gompa 8c8af0
Neal Gompa 8c8af0
diff --git a/appcreate/appliance.py b/appcreate/appliance.py
Neal Gompa 8c8af0
index 3afe993..f77b13b 100644
Neal Gompa 8c8af0
--- a/appcreate/appliance.py
Neal Gompa 8c8af0
+++ b/appcreate/appliance.py
Neal Gompa 8c8af0
@@ -43,13 +43,13 @@ class ApplianceImageCreator(ImageCreator):
Neal Gompa 8c8af0
 
Neal Gompa 8c8af0
     """
Neal Gompa 8c8af0
 
Neal Gompa 8c8af0
-    def __init__(self, ks, name, disk_format, vmem, vcpu):
Neal Gompa 8c8af0
+    def __init__(self, ks, name, disk_format, vmem, vcpu, releasever=None):
Neal Gompa 8c8af0
         """Initialize a ApplianceImageCreator instance.
Neal Gompa 8c8af0
 
Neal Gompa 8c8af0
         This method takes the same arguments as ImageCreator.__init__()
Neal Gompa 8c8af0
 
Neal Gompa 8c8af0
         """
Neal Gompa 8c8af0
-        ImageCreator.__init__(self, ks, name)
Neal Gompa 8c8af0
+        ImageCreator.__init__(self, ks, name, releasever=releasever)
Neal Gompa 8c8af0
 
Neal Gompa 8c8af0
         self.__instloop = None
Neal Gompa 8c8af0
         self.__imgdir = None
Neal Gompa 8c8af0
diff --git a/tools/appliance-creator b/tools/appliance-creator
Neal Gompa 8c8af0
index 1708431..9e3fa15 100755
Neal Gompa 8c8af0
--- a/tools/appliance-creator
Neal Gompa 8c8af0
+++ b/tools/appliance-creator
Neal Gompa 8c8af0
@@ -129,7 +129,7 @@ def main():
Neal Gompa 8c8af0
     if options.name:
Neal Gompa 8c8af0
         name = options.name
Neal Gompa 8c8af0
             
Neal Gompa 8c8af0
-    creator = appcreate.ApplianceImageCreator(ks, name, options.disk_format, options.vmem, options.vcpu)
Neal Gompa 8c8af0
+    creator = appcreate.ApplianceImageCreator(ks, name, options.disk_format, options.vmem, options.vcpu, releasever=options.version)
Neal Gompa 8c8af0
     creator.tmpdir = options.tmpdir
Neal Gompa 8c8af0
     creator.checksum = options.checksum
Neal Gompa 8c8af0
 
Neal Gompa 8c8af0
-- 
Neal Gompa 8c8af0
2.9.3
Neal Gompa 8c8af0