Update condition for Live and Compose

al changed/i9/anaconda-34.25.2.10-1.el9_2.inferit.4
Arkady L. Shane 1 year ago
parent 3135ef6ebd
commit c6e266c3d8
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -1,4 +1,4 @@
From 076dd539e89c704e486c38350f5859caaf502bf7 Mon Sep 17 00:00:00 2001
From c330f35f646f1b13cdeb052b815c927cfd050b7d Mon Sep 17 00:00:00 2001
From: Eugene Zamriy <evgeniy.zamriy@softline.com>
Date: Thu, 18 May 2023 11:38:45 +0300
Subject: [PATCH 11/11] Add MSVSphere identification support
@ -7,12 +7,12 @@ Subject: [PATCH 11/11] Add MSVSphere identification support
data/liveinst/gnome/fedora-welcome.desktop | 4 +-
data/liveinst/gnome/fedora-welcome.js | 2 +-
po/ru.po | 136 +++++++++++++-----
pyanaconda/product.py | 23 ++-
pyanaconda/product.py | 30 +++-
.../ui/gui/spokes/installation_progress.py | 8 +-
.../ui/gui/spokes/lib/storage_dialogs.py | 4 +-
pyanaconda/ui/gui/spokes/welcome.py | 15 +-
pyanaconda/vnc.py | 27 +++-
8 files changed, 166 insertions(+), 53 deletions(-)
8 files changed, 173 insertions(+), 53 deletions(-)
diff --git a/data/liveinst/gnome/fedora-welcome.desktop b/data/liveinst/gnome/fedora-welcome.desktop
index 90f5678..abbbff3 100644
@ -325,10 +325,18 @@ index c478f3f..914b54c 100644
#: data/liveinst/gnome/fedora-welcome.js:130
msgid ""
diff --git a/pyanaconda/product.py b/pyanaconda/product.py
index 9dbfe1f..4f78491 100644
index 9dbfe1f..34118d0 100644
--- a/pyanaconda/product.py
+++ b/pyanaconda/product.py
@@ -64,9 +64,30 @@ def trim_product_version_for_ui(version):
@@ -19,6 +19,7 @@
import configparser
import os
+import re
from pyanaconda.core.i18n import _
@@ -64,9 +65,36 @@ def trim_product_version_for_ui(version):
productVersion = trim_product_version_for_ui(productVersion)
@ -337,8 +345,14 @@ index 9dbfe1f..4f78491 100644
+ if productName == "MSVSphere Server" or \
+ (productName == "MSVSphere" and productVariant == "Minimal"):
+ productFlavor = "Server"
+ elif productName == "MSVSphere ARM":
+ productFlavor = "ARM"
+ elif productName == "MSVSphere" and productVariant == "BaseOS":
+ productFlavor = "OS"
+ elif productName == "MSVSphere":
+ os_release = open("/etc/os-release", "r")
+ for line in os_release:
+ match = re.match("PRETTY_NAME=.*\((.*?)\)", line)
+ if match:
+ productFlavor = match.group(1)
+ else:
+ productFlavor = "OS"
+else:

@ -1,7 +1,7 @@
Summary: Graphical system installer
Name: anaconda
Version: 34.25.2.10
Release: 1%{?dist}.inferit.3
Release: 1%{?dist}.inferit.4
License: GPLv2+ and MIT
URL: http://fedoraproject.org/wiki/Anaconda
@ -429,6 +429,9 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_d
%{_prefix}/libexec/anaconda/dd_*
%changelog
* Tue Aug 1 2023 Arkady L. Shane <ashejn@msvsphere> - 34.25.2.10-1.inferit.4
- Update condition for Live and Compose
* Sat Jul 29 2023 Eugene Zamriy <ezamriy@msvsphere.ru> - 34.25.2.10-1.inferit.3
- Added MSVSphere ARM and Server identification support patch
- Improved Russian translation

Loading…
Cancel
Save