fixed -r, --root processing
authorewt <devnull@localhost>
Wed, 12 Feb 1997 04:48:37 +0000 (04:48 +0000)
committerewt <devnull@localhost>
Wed, 12 Feb 1997 04:48:37 +0000 (04:48 +0000)
CVS patchset: 1402
CVS date: 1997/02/12 04:48:37

rpm.c

diff --git a/rpm.c b/rpm.c
index a60f83d..b6b11cf 100755 (executable)
--- a/rpm.c
+++ b/rpm.c
@@ -1,5 +1,4 @@
 #include <ctype.h>
-#include <locale.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -476,7 +475,7 @@ int main(int argc, char ** argv) {
            { "replacepkgs", '\0', 0, &replacePackages, 0 },
            { "resign", '\0', 0, 0, GETOPT_RESIGN },
            { "requires", 'R', 0, 0, 'R' },
-           { "root", 'r', POPT_ARG_STRING, 0, 'r' },
+           { "root", 'r', POPT_ARG_STRING, &rootdir, 0 },
            { "short-circuit", '\0', 0, &shortCircuit, 0 },
            { "showrc", '\0', 0, 0, 0 },
            { "sign", '\0', 0, &signIt, 0 },