[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH 7/7] Install the driver discs according to what was loaded in stage1



> diff --git a/yuminstall.py b/yuminstall.py
> index accf452..4eac19c 100644
> --- a/yuminstall.py
> +++ b/yuminstall.py
> @@ -649,16 +649,18 @@ class AnacondaYum(YumSorter):
<...>
> -                repo.enable()
> -                extraRepos.append(repo)
> +        (_, _, _, _, ddArch) = os.uname()

Remember how we do this at the top of nearly every file in anaconda:

_ = lambda x: gettext.ldgettext("anaconda", x)

You are setting the name ("_") we use to translate strings to refer
instead to a string. You are asking for trouble. It really is easier to
do os.uname()[4].

Dave


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]