db55bd4269
532a3213-fix-url-autodetect-timeout.patch 532a3213-exit-URL-detection-immediately-if-detection-fails.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=154
25 lines
1.1 KiB
Diff
25 lines
1.1 KiB
Diff
Subject: create: Fix URL autodetect timeout detection
|
|
From: Charles Arnold carnold@suse.com Wed Mar 19 16:26:52 2014 -0600
|
|
Date: Wed Mar 19 20:10:59 2014 -0400:
|
|
Git: f113a8db29ea3d8a4080f767d2fc6f5e8488eb09
|
|
|
|
When 'Network Install' is selected and a malformed url is entered in the
|
|
'URL:' box virt-manager will hang forever 'Detecting...'. For example,
|
|
leave the 'http://' off the url when 'Automatically detect...' is enabled.
|
|
|
|
Signed-off-by: Charles Arnold <carnold@suse.com>
|
|
|
|
Index: virt-manager-1.0.0/virtManager/create.py
|
|
===================================================================
|
|
--- virt-manager-1.0.0.orig/virtManager/create.py
|
|
+++ virt-manager-1.0.0/virtManager/create.py
|
|
@@ -1917,7 +1917,7 @@ class vmmCreate(vmmGObjectUI):
|
|
try:
|
|
base = _("Detecting")
|
|
|
|
- if (self.detectedDistro == -1) or (idx >= (DETECT_TIMEOUT * 2)):
|
|
+ if (self.detectedDistro == -1) and (idx < (DETECT_TIMEOUT * 2)):
|
|
detect_str = base + ("." * ((idx % 3) + 1))
|
|
self.set_distro_labels(detect_str, detect_str)
|
|
|