Initialize rpm earlier in rpm2cpio (RhBug:523260)

- url retrieval requires macros to be loaded
This commit is contained in:
Panu Matilainen 2009-09-15 12:57:51 +03:00
parent eeceb42895
commit 63d37be6b4
1 changed files with 1 additions and 1 deletions

View File

@ -21,6 +21,7 @@ int main(int argc, char *argv[])
FD_t gzdi;
setprogname(argv[0]); /* Retrofit glibc __progname */
rpmReadConfigFiles(NULL, NULL);
if (argc == 1)
fdi = fdDup(STDIN_FILENO);
else {
@ -37,7 +38,6 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
fdo = fdDup(STDOUT_FILENO);
rpmReadConfigFiles(NULL, NULL);
{ rpmts ts = rpmtsCreate();
rpmVSFlags vsflags = 0;