Parse VERSION, not PRETTY_NAME

al changed/i9/anaconda-34.25.2.10-1.el9_2.inferit.12
Arkady L. Shane 1 year ago
parent 1e753a885d
commit 9d92f91a73
Signed by: tigro
GPG Key ID: 9C7900103E1C4F8B

@ -410,7 +410,7 @@ index 9dbfe1f..4feea0a 100644
+ elif productName == "MSVSphere": + elif productName == "MSVSphere":
+ os_release = open("/etc/os-release", "r") + os_release = open("/etc/os-release", "r")
+ for line in os_release: + for line in os_release:
+ match = re.match("PRETTY_NAME=.*\((.*?)\)", line) + match = re.match("VERSION=.*\((.*?)\)", line)
+ if match: + if match:
+ productFlavor = match.group(1) + productFlavor = match.group(1)
+ else: + else:

@ -1,7 +1,7 @@
Summary: Graphical system installer Summary: Graphical system installer
Name: anaconda Name: anaconda
Version: 34.25.2.10 Version: 34.25.2.10
Release: 1%{?dist}.inferit.11 Release: 1%{?dist}.inferit.12
License: GPLv2+ and MIT License: GPLv2+ and MIT
URL: http://fedoraproject.org/wiki/Anaconda URL: http://fedoraproject.org/wiki/Anaconda
@ -432,6 +432,9 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_d
%{_prefix}/libexec/anaconda/dd_* %{_prefix}/libexec/anaconda/dd_*
%changelog %changelog
* Fri Oct 27 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 34.25.2.10-1.inferit.12
- Parse VERSION, not PRETTY_NAME
* Fri Oct 27 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 34.25.2.10-1.inferit.11 * Fri Oct 27 2023 Arkady L. Shane <tigro@msvsphere-os.ru> - 34.25.2.10-1.inferit.11
- Drop some brandiong entries from Russian translation - Drop some brandiong entries from Russian translation

Loading…
Cancel
Save