summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-15 12:57:51 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-15 12:57:51 +0300
commit63d37be6b4a854b9cbbd47306c5c383a2ad356c2 (patch)
treec95b77564fcb8df92e4a097f51cf4c77fd3ff6a0
parenteeceb428951fd33b9bedbd4adba9f08e46a47dcc (diff)
downloadlibrpm-tizen-63d37be6b4a854b9cbbd47306c5c383a2ad356c2.tar.gz
librpm-tizen-63d37be6b4a854b9cbbd47306c5c383a2ad356c2.tar.bz2
librpm-tizen-63d37be6b4a854b9cbbd47306c5c383a2ad356c2.zip
Initialize rpm earlier in rpm2cpio (RhBug:523260)
- url retrieval requires macros to be loaded
-rw-r--r--rpm2cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c
index 6c29cab5b..bf7f17c3c 100644
--- a/rpm2cpio.c
+++ b/rpm2cpio.c
@@ -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;