diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2009-09-15 12:57:51 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2009-09-15 12:57:51 +0300 |
commit | 63d37be6b4a854b9cbbd47306c5c383a2ad356c2 (patch) | |
tree | c95b77564fcb8df92e4a097f51cf4c77fd3ff6a0 | |
parent | eeceb428951fd33b9bedbd4adba9f08e46a47dcc (diff) | |
download | librpm-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.c | 2 |
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; |