Fix setting of loaderData->method from repo= cmdline option.
ack
On Wed, 2011-03-02 at 13:54 +0100, Radek Vykydal wrote:
> There was double "repo=" if branch. The second one (few lines
> below the removed) is the right one.
> ---
> loader/loader.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/loader/loader.c b/loader/loader.c
> index 737386c..f30adb9 100644
> --- a/loader/loader.c
> +++ b/loader/loader.c
> @@ -1060,8 +1060,6 @@ static void parseCmdLineFlags(struct loaderData_s * loaderData,
> } else if (!strcasecmp(k, "method")) {
> logMessage(WARNING, "method= is deprecated. Please use repo= instead.");
> loaderData->instRepo = g_strdup(v);
> - } else if (!strcasecmp(k, "repo")) {
> - loaderData->instRepo = g_strdup(v);
> } else if (!strcasecmp(k, "stage2")) {
> logMessage(WARNING, "stage2= is deprecated. Please use repo= instead.");
> flags |= LOADER_FLAGS_ASKMETHOD;
--
Martin Gracik <mgracik@redhat.com>
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|