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

[PATCH master] Fix setting of loaderData->method from repo= cmdline option.



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;
-- 
1.7.2


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