zengxyz / rpms / anaconda

Forked from rpms/anaconda 3 months ago
Clone
Blob Blame History Raw
From 17f03eed5904dbc91423e5893279906efcbff091 Mon Sep 17 00:00:00 2001
From: Jiri Konecny <jkonecny@redhat.com>
Date: Mon, 26 Apr 2021 18:41:43 +0200
Subject: [PATCH 3/3] Add base repo name for CentOS Stream after repository
 renaming

CentOS Stream renamed the repository to make everything consistent. For that we
have to keep old repository name for RHEL but also we need the new one for
CentOS Stream.

Resolves: rhbz#1946347
---
 pyanaconda/core/constants.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/core/constants.py b/pyanaconda/core/constants.py
index a0099451bd..9c56068e9e 100644
--- a/pyanaconda/core/constants.py
+++ b/pyanaconda/core/constants.py
@@ -60,7 +60,8 @@ BASE_REPO_NAME = "anaconda"
 DEFAULT_REPOS = [productName.split('-')[0].lower(),
                  "fedora-modular-server",
                  "rawhide",
-                 "BaseOS"]
+                 "BaseOS",  # Used by RHEL
+                 "baseos"]  # Used by CentOS Stream
 
 # Get list of repo names which should be used as updates repos
 DEFAULT_UPDATE_REPOS = ["updates",
-- 
2.30.2