forked from rpms/leapp-repository
32 lines
1.2 KiB
Diff
32 lines
1.2 KiB
Diff
From 5547c926b0c1bf5c2c8d943a178b878a8df50120 Mon Sep 17 00:00:00 2001
|
|
From: Matej Matuska <mmatuska@redhat.com>
|
|
Date: Thu, 21 Aug 2025 19:21:13 +0200
|
|
Subject: [PATCH 094/111] lib/module: Remove 7->8 releasever workaround
|
|
|
|
---
|
|
repos/system_upgrade/common/libraries/module.py | 8 --------
|
|
1 file changed, 8 deletions(-)
|
|
|
|
diff --git a/repos/system_upgrade/common/libraries/module.py b/repos/system_upgrade/common/libraries/module.py
|
|
index db725e71..ba7ecba9 100644
|
|
--- a/repos/system_upgrade/common/libraries/module.py
|
|
+++ b/repos/system_upgrade/common/libraries/module.py
|
|
@@ -26,14 +26,6 @@ def _create_or_get_dnf_base(base=None):
|
|
# preload releasever from what we know, this will be our fallback
|
|
conf.substitutions['releasever'] = get_source_major_version()
|
|
|
|
- # dnf on EL7 doesn't load vars from /etc/yum, so we need to help it a bit
|
|
- if get_source_major_version() == '7':
|
|
- try:
|
|
- with open('/etc/yum/vars/releasever') as releasever_file:
|
|
- conf.substitutions['releasever'] = releasever_file.read().strip()
|
|
- except IOError:
|
|
- pass
|
|
-
|
|
# load all substitutions from etc
|
|
conf.substitutions.update_from_etc('/')
|
|
|
|
--
|
|
2.52.0
|
|
|