rpms/python-virtinst/F-9 virtinst-0.300.3-hvm-kernel.patch, NONE, 1.1 python-virtinst.spec, 1.42, 1.43

Daniel P. Berrange (berrange) fedora-extras-commits at redhat.com
Wed Jun 4 20:57:55 UTC 2008


Author: berrange

Update of /cvs/pkgs/rpms/python-virtinst/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15196

Modified Files:
	python-virtinst.spec 
Added Files:
	virtinst-0.300.3-hvm-kernel.patch 
Log Message:
Fix fetching of HVM kernels (rhbz #450032)

virtinst-0.300.3-hvm-kernel.patch:

--- NEW FILE virtinst-0.300.3-hvm-kernel.patch ---
changeset:   406:5f10c7c171af
user:        "Daniel P. Berrange <berrange at redhat.com>"
date:        Mon Apr 21 18:05:55 2008 -0400
files:       virtinst/OSDistro.py
description:
Fix fetching of hvm kernel/initrds


diff -r 6462dfd3e606 -r 5f10c7c171af virtinst/OSDistro.py
--- a/virtinst/OSDistro.py	Tue Apr 08 15:35:49 2008 -0400
+++ b/virtinst/OSDistro.py	Mon Apr 21 18:05:55 2008 -0400
@@ -79,7 +79,7 @@
             initrdpath = self.treeinfo.get("images-%s" % type, "initrd")
         else:
             # fall back to old code
-            if self.type is None:
+            if self.type is None or self.type == "hvm":
                 kernelpath = "images/pxeboot/vmlinuz"
                 initrdpath = "images/pxeboot/initrd.img"
             else:
@@ -359,7 +359,7 @@
 class DebianDistro(Distro):
     def isValidStore(self, fetcher, progresscb):
         # Don't support any paravirt installs
-        if self.type is not None:
+        if self.type is not None and self.type != "hvm":
             return False
 
         file = None
@@ -400,21 +400,21 @@
 class UbuntuDistro(Distro):
     def isValidStore(self, fetcher, progresscb):
         # Don't support any paravirt installs
-        if self.type is not None:
+        if self.type is not None and self.type != "hvm":
             return False
         return False
 
 class GentooDistro(Distro):
     def isValidStore(self, fetcher, progresscb):
         # Don't support any paravirt installs
-        if self.type is not None:
+        if self.type is not None and self.type != "hvm":
             return False
         return False
 
 class MandrivaDistro(Distro):
     def isValidStore(self, fetcher, progresscb):
         # Don't support any paravirt installs
-        if self.type is not None:
+        if self.type is not None and self.type != "hvm":
             return False
 
         # Mandriva websites / media appear to have a VERSION



Index: python-virtinst.spec
===================================================================
RCS file: /cvs/pkgs/rpms/python-virtinst/F-9/python-virtinst.spec,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- python-virtinst.spec	9 May 2008 17:07:36 -0000	1.42
+++ python-virtinst.spec	4 Jun 2008 20:57:11 -0000	1.43
@@ -11,7 +11,7 @@
 Summary: Python modules for starting Xen guest installations
 Name: python-%{appname}
 Version: 0.300.3
-Release: 6%{_extra_release}
+Release: 7%{_extra_release}
 Source0: http://virt-manager.org/download/sources/%{appname}/%{appname}-%{version}.tar.gz
 Patch1: %{appname}-%{version}-keep-qemu-cdrom.patch
 Patch2: %{appname}-%{version}-fix-default-arch.patch
@@ -20,6 +20,7 @@
 Patch5: %{appname}-%{version}-i18n.patch
 Patch6: %{appname}-%{version}-update-serbian-trans.patch
 Patch7: %{appname}-%{version}-boot-dir.patch
+Patch8: %{appname}-%{version}-hvm-kernel.patch
 License: GPLv2+
 Group: Development/Libraries
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -56,6 +57,7 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %build
 python setup.py build
@@ -86,6 +88,9 @@
 %{_bindir}/virt-image
 
 %changelog
+* Wed Jun  4 2008 Daniel P. Berrange <berrange at redhat.com> - 0.300.3-7.fc9
+- Fix fetching of HVM kernels (rhbz #450032)
+
 * Fri May  9 2008 Daniel P. Berrange <berrange at redhat.com> - 0.300.3-6.fc9
 - Use /var/lib/libvirt/boot for kernel/initrd images (rhbz #445854)
 




More information about the fedora-extras-commits mailing list