This reverts commit 51f204b9694400b512d0e8cf33c4b409ac0fa0d4.
Yes, this is absurd. But this will be the last time I change this. The
rule will now be:
Include a repo in your installation environment that has an id
matching the lower case first part of your product name when split at
the '-' character.
If you don't do that closest mirror will not work.
For Fedora products this means including ONE repo with an id of
'fedora'.
---
pyanaconda/packaging/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py
index c91838b..effb08a 100644
--- a/pyanaconda/packaging/__init__.py
+++ b/pyanaconda/packaging/__init__.py
@@ -646,7 +646,7 @@ class ArchivePayload(ImagePayload):
class PackagePayload(Payload):
""" A PackagePayload installs a set of packages onto the target
system. """
- DEFAULT_REPOS = [productName.lower(), "rawhide"]
+ DEFAULT_REPOS = [productName.split('-')[0].lower(), "rawhide"]
def __init__(self, data):
if self.__class__ is PackagePayload:
--
1.9.3