|
|
c70aad |
From dfbda502c5c46daf84e00179478de01e452f9dae Mon Sep 17 00:00:00 2001
|
|
|
c70aad |
From: Jan Kolarik <jkolarik@redhat.com>
|
|
|
c70aad |
Date: Fri, 16 Dec 2022 05:55:19 +0000
|
|
|
c70aad |
Subject: [PATCH] system-upgrade: Show warning always for a downstream
|
|
|
c70aad |
|
|
|
c70aad |
As the distro package is not available in the BaseOS, the warning implementation will be shown always, but only in related downstreams.
|
|
|
c70aad |
|
|
|
c70aad |
= changelog =
|
|
|
c70aad |
type: bugfix
|
|
|
c70aad |
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2152846
|
|
|
c70aad |
---
|
|
|
c70aad |
dnf-plugins-core.spec | 3 ++-
|
|
|
c70aad |
plugins/system_upgrade.py | 6 ++----
|
|
|
c70aad |
2 files changed, 4 insertions(+), 5 deletions(-)
|
|
|
c70aad |
|
|
|
c70aad |
diff --git a/dnf-plugins-core.spec b/dnf-plugins-core.spec
|
|
|
c70aad |
index a5ec165..0e1c9e3 100644
|
|
|
c70aad |
--- a/dnf-plugins-core.spec
|
|
|
c70aad |
+++ b/dnf-plugins-core.spec
|
|
|
c70aad |
@@ -148,13 +148,14 @@ Summary: Core Plugins for DNF
|
|
|
c70aad |
%{?python_provide:%python_provide python3-%{name}}
|
|
|
c70aad |
BuildRequires: python3-dbus
|
|
|
c70aad |
BuildRequires: python3-devel
|
|
|
c70aad |
-BuildRequires: python3-distro
|
|
|
c70aad |
BuildRequires: python3-dnf >= %{dnf_lowest_compatible}
|
|
|
c70aad |
BuildRequires: python3-systemd
|
|
|
c70aad |
BuildRequires: pkgconfig(systemd)
|
|
|
c70aad |
BuildRequires: systemd
|
|
|
c70aad |
%{?systemd_ordering}
|
|
|
c70aad |
+%if 0%{?fedora}
|
|
|
c70aad |
Requires: python3-distro
|
|
|
c70aad |
+%endif
|
|
|
c70aad |
Requires: python3-dbus
|
|
|
c70aad |
Requires: python3-dnf >= %{dnf_lowest_compatible}
|
|
|
c70aad |
Requires: python3-hawkey >= %{hawkey_version}
|
|
|
c70aad |
diff --git a/plugins/system_upgrade.py b/plugins/system_upgrade.py
|
|
|
c70aad |
index ef1de73..4f7620f 100644
|
|
|
c70aad |
--- a/plugins/system_upgrade.py
|
|
|
c70aad |
+++ b/plugins/system_upgrade.py
|
|
|
c70aad |
@@ -20,7 +20,6 @@
|
|
|
c70aad |
"""system_upgrade.py - DNF plugin to handle major-version system upgrades."""
|
|
|
c70aad |
|
|
|
c70aad |
from subprocess import call, Popen, check_output, CalledProcessError
|
|
|
c70aad |
-import distro
|
|
|
c70aad |
import json
|
|
|
c70aad |
import os
|
|
|
c70aad |
import os.path
|
|
|
c70aad |
@@ -452,9 +451,8 @@ class SystemUpgradeCommand(dnf.cli.Command):
|
|
|
c70aad |
|
|
|
c70aad |
def configure_download(self):
|
|
|
c70aad |
if 'system-upgrade' == self.opts.command or 'fedup' == self.opts.command:
|
|
|
c70aad |
- if distro.id() == 'rhel':
|
|
|
c70aad |
- logger.warning(_('WARNING: this operation is not supported on the RHEL distribution. '
|
|
|
c70aad |
- 'Proceed at your own risk.'))
|
|
|
c70aad |
+ logger.warning(_('WARNING: this operation is not supported on the RHEL distribution. '
|
|
|
c70aad |
+ 'Proceed at your own risk.'))
|
|
|
c70aad |
help_url = get_url_from_os_release()
|
|
|
c70aad |
if help_url:
|
|
|
c70aad |
msg = _('Additional information for System Upgrade: {}')
|
|
|
c70aad |
--
|
|
|
c70aad |
2.39.0
|
|
|
c70aad |
|