virt-manager update add ubuntu2004lts legacy-image patch

Signed-off-by: virtbuilder_pel7ppc64bebuilder0 <virtbuilder@powerel.org>
master
virtbuilder_pel7ppc64bebuilder0 2020-05-31 15:29:33 +02:00
parent 9adc496f9c
commit 90a89a49c1
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,20 @@
--- virt-manager-2.2.1/virtinst/install/urldetect.py 2020-05-30 18:30:03.090000000 +0200
+++ virt-manager-2.2.1/virtinst/install/urldetect.py 2020-05-30 18:31:07.600000000 +0200
@@ -640,6 +640,8 @@
media_type = None
if check_manifest("current/images/MANIFEST"):
media_type = "url"
+ elif check_manifest("current/legacy-images/MANIFEST"):
+ media_type = "legacy_url"
elif check_manifest("daily/MANIFEST"):
media_type = "daily"
elif cache.content_regex(".disk/info",
@@ -697,6 +699,8 @@
url_prefix = "daily"
elif self.cache.debian_media_type == "mounted_iso_url":
url_prefix = "install"
+ elif self.cache.debian_media_type == "legacy_url":
+ url_prefix = "current/legacy-images"
tree_arch = self._find_treearch()
hvmroot = "%s/netboot/%s-installer/%s/" % (url_prefix,

View File

@ -5,13 +5,15 @@

Name: virt-manager
Version: 2.2.1
Release: 1%{?dist}
Release: 2%{?dist}
%global verrel %{version}-%{release}
Summary: Desktop tool for managing virtual machines via libvirt
License: GPLv2+
BuildArch: noarch
URL: https://virt-manager.org/
Source0: https://virt-manager.org/download/sources/%{name}/%{name}-%{version}.tar.gz
# Ubuntu 20.04 LTS image relocation
Patch0: virt-manager-ubuntu-2004lts-location.patch
Requires: virt-manager-common = %{verrel}
Requires: python3-gobject
Requires: gtk3
@ -78,6 +80,7 @@ machine).

%prep
%setup -q
%patch0 -p1


%build