summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-09-01 21:15:40 +0000
committerjbj <devnull@localhost>2000-09-01 21:15:40 +0000
commitf2efc7263e952cef24f2196f92d02ee0b3b9aa1e (patch)
tree9fc55f7f93eb4a4d875c20a868f430f1b15af141 /rpm.c
parent4f0179f7ee468c3876ee823a69d89c236784372f (diff)
downloadrpm-f2efc7263e952cef24f2196f92d02ee0b3b9aa1e.tar.gz
- unify rpmError and rpmMessge interfaces through rpmlog.
- collect and display rpm build error messages at end of build. CVS patchset: 4149 CVS date: 2000/09/01 21:15:40
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/rpm.c b/rpm.c
index e9d109291..89165926b 100755
--- a/rpm.c
+++ b/rpm.c
@@ -17,6 +17,7 @@
#define GETOPT_EXCLUDEPATH 1019
#define GETOPT_DEFINEMACRO 1020
#define GETOPT_EVALMACRO 1021
+#define GETOPT_RCFILE 1022
enum modes {
MODE_UNKNOWN = 0,
@@ -123,6 +124,7 @@ static struct poptOption optionsTable[] = {
/* info and install both using 'i' is dumb */
{ "install", '\0', 0, 0, GETOPT_INSTALL, NULL, NULL},
{ "justdb", '\0', 0, &justdb, 0, NULL, NULL},
+ { "macros", '\0', POPT_ARG_STRING, &macrofiles, 0, NULL, NULL},
{ "nodeps", '\0', 0, &noDeps, 0, NULL, NULL},
{ "nodirtokens", '\0', POPT_ARG_VAL, &_noDirTokens, 1, NULL, NULL},
{ "nogpg", '\0', 0, &noGpg, 0, NULL, NULL},
@@ -139,7 +141,7 @@ static struct poptOption optionsTable[] = {
{ "pipe", '\0', POPT_ARG_STRING, &pipeOutput, 0, NULL, NULL},
{ "prefix", '\0', POPT_ARG_STRING, &prefix, 0, NULL, NULL},
{ "quiet", '\0', 0, &quiet, 0, NULL, NULL},
- { "rcfile", '\0', POPT_ARG_STRING, &rcfile, 0, NULL, NULL},
+ { "rcfile", '\0', 0, 0, GETOPT_RCFILE, NULL, NULL},
{ "rebuilddb", '\0', 0, 0, GETOPT_REBUILDDB, NULL, NULL},
{ "relocate", '\0', POPT_ARG_STRING, 0, GETOPT_RELOCATE, NULL, NULL},
{ "replacefiles", '\0', 0, &replaceFiles, 0, NULL, NULL},
@@ -776,6 +778,12 @@ int main(int argc, const char ** argv)
relocations[numRelocations++].newPath = NULL;
break;
+ case GETOPT_RCFILE:
+ fprintf(stderr, _("The --rcfile option has been eliminated.\n"));
+ fprintf(stderr, _("Use --macros with a colon separated list of macro files to read.\n"));
+ exit(EXIT_FAILURE);
+ /*@notreached@*/ break;
+
default:
fprintf(stderr, _("Internal error in argument processing (%d) :-(\n"), arg);
exit(EXIT_FAILURE);