Martin Kolman 199746
From fd2a64b5a6b5addc4e37ae8e1705d04f396f1044 Mon Sep 17 00:00:00 2001
Martin Kolman 199746
From: Jiri Konecny <jkonecny@redhat.com>
Martin Kolman 199746
Date: Fri, 27 Oct 2017 19:25:35 +0200
Martin Kolman 199746
Subject: [PATCH] Add modular server repo to the base repositories (#1506894)
Martin Kolman 199746
Martin Kolman 199746
The base repo is tested at the end of the installation and if the base
Martin Kolman 199746
repo is not enabled then the payload reset fails. This breaks closest
Martin Kolman 199746
source installation where this check is applied.
Martin Kolman 199746
Martin Kolman 199746
The base repo is recognized by name and this name could have the
Martin Kolman 199746
following values:
Martin Kolman 199746
Martin Kolman 199746
anaconda
Martin Kolman 199746
rawhide
Martin Kolman 199746
first part before "-" sign in the product name
Martin Kolman 199746
Martin Kolman 199746
This doesn't work for Fedora-Modular because it is fedora but that can't
Martin Kolman 199746
be used for repo id or there will be repo name collision.
Martin Kolman 199746
Martin Kolman 199746
Solved by adding fedora-modular-server to this list too.
Martin Kolman 199746
Martin Kolman 199746
Resolves: rhbz#1506894
Martin Kolman 199746
---
Martin Kolman 199746
 pyanaconda/payload/__init__.py | 2 +-
Martin Kolman 199746
 1 file changed, 1 insertion(+), 1 deletion(-)
Martin Kolman 199746
Martin Kolman 199746
diff --git a/pyanaconda/payload/__init__.py b/pyanaconda/payload/__init__.py
Martin Kolman 199746
index 91f679174..aaf7b7463 100644
Martin Kolman 199746
--- a/pyanaconda/payload/__init__.py
Martin Kolman 199746
+++ b/pyanaconda/payload/__init__.py
Martin Kolman 199746
@@ -980,7 +980,7 @@ class ArchivePayload(ImagePayload):
Martin Kolman 199746
 class PackagePayload(Payload):
Martin Kolman 199746
     """A PackagePayload installs a set of packages onto the target system."""
Martin Kolman 199746
 
Martin Kolman 199746
-    DEFAULT_REPOS = [productName.split('-')[0].lower(), "rawhide"]          # pylint: disable=no-member
Martin Kolman 199746
+    DEFAULT_REPOS = [productName.split('-')[0].lower(), "fedora-modular-server", "rawhide"]  # pylint: disable=no-member
Martin Kolman 199746
 
Martin Kolman 199746
     def __init__(self, data):
Martin Kolman 199746
         if self.__class__ is PackagePayload:
Martin Kolman 199746
-- 
Martin Kolman 199746
2.13.6
Martin Kolman 199746