diff options
author | jbj <devnull@localhost> | 2000-09-01 21:15:40 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2000-09-01 21:15:40 +0000 |
commit | f2efc7263e952cef24f2196f92d02ee0b3b9aa1e (patch) | |
tree | 9fc55f7f93eb4a4d875c20a868f430f1b15af141 /rpm.c | |
parent | 4f0179f7ee468c3876ee823a69d89c236784372f (diff) | |
download | librpm-tizen-f2efc7263e952cef24f2196f92d02ee0b3b9aa1e.tar.gz librpm-tizen-f2efc7263e952cef24f2196f92d02ee0b3b9aa1e.tar.bz2 librpm-tizen-f2efc7263e952cef24f2196f92d02ee0b3b9aa1e.zip |
- 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-x | rpm.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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, ¯ofiles, 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); |