Initialize rpm earlier in rpm2cpio (RhBug:523260)
- url retrieval requires macros to be loaded
This commit is contained in:
parent
eeceb42895
commit
63d37be6b4
|
@ -21,6 +21,7 @@ int main(int argc, char *argv[])
|
||||||
FD_t gzdi;
|
FD_t gzdi;
|
||||||
|
|
||||||
setprogname(argv[0]); /* Retrofit glibc __progname */
|
setprogname(argv[0]); /* Retrofit glibc __progname */
|
||||||
|
rpmReadConfigFiles(NULL, NULL);
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
fdi = fdDup(STDIN_FILENO);
|
fdi = fdDup(STDIN_FILENO);
|
||||||
else {
|
else {
|
||||||
|
@ -37,7 +38,6 @@ int main(int argc, char *argv[])
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
fdo = fdDup(STDOUT_FILENO);
|
fdo = fdDup(STDOUT_FILENO);
|
||||||
rpmReadConfigFiles(NULL, NULL);
|
|
||||||
|
|
||||||
{ rpmts ts = rpmtsCreate();
|
{ rpmts ts = rpmtsCreate();
|
||||||
rpmVSFlags vsflags = 0;
|
rpmVSFlags vsflags = 0;
|
||||||
|
|
Loading…
Reference in New Issue