diff --git a/SOURCES/virt-manager-ubuntu-2004lts-location.patch b/SOURCES/virt-manager-ubuntu-2004lts-location.patch new file mode 100644 index 0000000..01df666 --- /dev/null +++ b/SOURCES/virt-manager-ubuntu-2004lts-location.patch @@ -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, diff --git a/SPECS/virt-manager.spec b/SPECS/virt-manager.spec index ef6db89..9affdc8 100644 --- a/SPECS/virt-manager.spec +++ b/SPECS/virt-manager.spec @@ -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