File virtinst-git-suse-url.diff of Package python-virtinst.openSUSE_12.1_Update
Subject: SUSE URL installs want install= rather than method=
From: Cole Robinson crobinso@redhat.com Thu Feb 9 10:41:18 2012 -0500
Date: Thu Feb 9 10:41:18 2012 -0500:
Git: 8f02eecd41130dd8b20a80f589d0f67f718484d2
Index: virtinst-0.600.1/virtinst/OSDistro.py
===================================================================
--- virtinst-0.600.1.orig/virtinst/OSDistro.py
+++ virtinst-0.600.1/virtinst/OSDistro.py
@@ -240,6 +240,7 @@ class Distro:
_hvm_kernel_paths = []
_xen_kernel_paths = []
uses_treeinfo = False
+ method_arg = "method"
def __init__(self, uri, arch, vmtype=None, scratchdir=None):
self.uri = uri
@@ -373,7 +374,7 @@ class Distro:
args = ''
if not fetcher.location.startswith("/"):
- args += "method=" + fetcher.location
+ args += "%s=%s" % (self.method_arg, fetcher.location)
if guest.extraargs:
args += " " + guest.extraargs
@@ -655,6 +656,7 @@ class SuseDistro(Distro):
name = "SUSE"
os_type = "linux"
+ method_arg = "install"
_boot_iso_paths = [ "boot/boot.iso" ]
def __init__(self, uri, arch, vmtype=None, scratchdir=None):