Blame rpm-4.7.1-rpm2cpio-init.patch
|
Panu Matilainen |
e0a8ab |
commit 63d37be6b4a854b9cbbd47306c5c383a2ad356c2
|
|
Panu Matilainen |
e0a8ab |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
e0a8ab |
Date: Tue Sep 15 12:57:51 2009 +0300
|
|
Panu Matilainen |
e0a8ab |
|
|
Panu Matilainen |
e0a8ab |
Initialize rpm earlier in rpm2cpio (RhBug:523260)
|
|
Panu Matilainen |
e0a8ab |
- url retrieval requires macros to be loaded
|
|
Panu Matilainen |
e0a8ab |
|
|
Panu Matilainen |
e0a8ab |
diff --git a/rpm2cpio.c b/rpm2cpio.c
|
|
Panu Matilainen |
e0a8ab |
index 6c29cab..bf7f17c 100644
|
|
Panu Matilainen |
e0a8ab |
--- a/rpm2cpio.c
|
|
Panu Matilainen |
e0a8ab |
+++ b/rpm2cpio.c
|
|
Panu Matilainen |
e0a8ab |
@@ -21,6 +21,7 @@ int main(int argc, char *argv[])
|
|
Panu Matilainen |
e0a8ab |
FD_t gzdi;
|
|
Panu Matilainen |
e0a8ab |
|
|
Panu Matilainen |
e0a8ab |
setprogname(argv[0]); /* Retrofit glibc __progname */
|
|
Panu Matilainen |
e0a8ab |
+ rpmReadConfigFiles(NULL, NULL);
|
|
Panu Matilainen |
e0a8ab |
if (argc == 1)
|
|
Panu Matilainen |
e0a8ab |
fdi = fdDup(STDIN_FILENO);
|
|
Panu Matilainen |
e0a8ab |
else {
|
|
Panu Matilainen |
e0a8ab |
@@ -37,7 +38,6 @@ int main(int argc, char *argv[])
|
|
Panu Matilainen |
e0a8ab |
exit(EXIT_FAILURE);
|
|
Panu Matilainen |
e0a8ab |
}
|
|
Panu Matilainen |
e0a8ab |
fdo = fdDup(STDOUT_FILENO);
|
|
Panu Matilainen |
e0a8ab |
- rpmReadConfigFiles(NULL, NULL);
|
|
Panu Matilainen |
e0a8ab |
|
|
Panu Matilainen |
e0a8ab |
{ rpmts ts = rpmtsCreate();
|
|
Panu Matilainen |
e0a8ab |
rpmVSFlags vsflags = 0;
|