[virt-tools-list] [PATCH virt-manager 1/4 V1] urlfetcher: Add classes for SUSE distros

Lin Ma lma at suse.com
Fri May 29 08:51:47 UTC 2015


From: Charles Arnold <carnold at suse.com>
Signed-off-by: Lin Ma <lma at suse.com>
---
 virtinst/urlfetcher.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/virtinst/urlfetcher.py b/virtinst/urlfetcher.py
index 2b15bf8..d83c6da 100644
--- a/virtinst/urlfetcher.py
+++ b/virtinst/urlfetcher.py
@@ -873,6 +873,20 @@ class SuseDistro(Distro):
         return self.os_variant
 
 
+class SLESDistro(SuseDistro):
+    urldistro = "sles"
+
+
+class SLEDDistro(SuseDistro):
+    urldistro = "sled"
+
+
+# Suse  image store is harder - we fetch the kernel RPM and a helper
+# RPM and then munge bits together to generate a initrd
+class OpensuseDistro(SuseDistro):
+    urldistro = "opensuse"
+
+
 class DebianDistro(Distro):
     # ex. http://ftp.egr.msu.edu/debian/dists/sarge/main/installer-i386/
     # daily builds: http://d-i.debian.org/daily-images/amd64/
-- 
2.1.4




More information about the virt-tools-list mailing list