Apply poptReadDefaultConfig iff RPM_USES_POPTREADDEFAULTCONFIG is set.

This commit is contained in:
Ralf Corsépius 2007-09-17 11:29:52 +02:00
parent 7484efff8e
commit 2975d9b63b
1 changed files with 2 additions and 0 deletions

View File

@ -472,7 +472,9 @@ main(int argc, char *argv[])
#endif
optCon = poptGetContext("rpminject", argc, (const char **) argv, optionsTable, 0);
#if RPM_USES_POPTREADDEFAULTCONFIG
poptReadDefaultConfig(optCon, 1);
#endif
while ((arg = poptGetNextOpt(optCon)) > 0) {
optArg = poptGetOptArg(optCon);