[anaconda f21/master] Revert "Revert productName repo name change (#1128474)"
Samantha N. Bueno
sbueno+anaconda at redhat.com
Thu Nov 6 21:29:40 UTC 2014
On Thu, Nov 06, 2014 at 10:45:14AM -0800, Brian C. Lane wrote:
> 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'.
Well there is not much time left before F21 is released, so let's hope
it actually stays this way. ;) Ack to both of your patches.
> ---
> 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
>
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches
More information about the anaconda-patches
mailing list