summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Bowes <jbowes@redhat.com>2008-06-26 18:15:59 -0400
committerJames Bowes <jbowes@redhat.com>2008-06-26 18:15:59 -0400
commit145002da7ffa173c14c6560e6ee26e6487554008 (patch)
treea65181ba16bdf4aaa4b381b971560235e88415c1 /src
parentc57370decf4e204cf4e3323e669cc676a2760707 (diff)
get rpm -qpi working fully
Diffstat (limited to 'src')
-rw-r--r--src/rpm.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rpm.c b/src/rpm.c
index bb91354..872f926 100644
--- a/src/rpm.c
+++ b/src/rpm.c
@@ -473,20 +473,20 @@ command_query(int argc, const char *argv[])
option_all = 1;
} else {
set = razor_root_open_read_only(option_root);
+
+ /* FIXME: We need to figure out how to do this right. */
+ details = "install/var/lib/razor/system-details.repo";
+ if (option_info)
+ if (razor_set_open_details(set, details))
+ return;
+ files = "install/var/lib/razor/system-files.repo";
+ if (option_list)
+ if (razor_set_open_files(set, files))
+ return;
}
pi = get_query_packages(set, argc, argv);
- /* FIXME: We need to figure out how to do this right. */
- details = "install/var/lib/razor/system-details.repo";
- if (option_info)
- if (razor_set_open_details(set, details))
- return;
- files = "install/var/lib/razor/system-files.repo";
- if (option_list)
- if (razor_set_open_files(set, files))
- return;
-
while (razor_package_iterator_next(pi, &package,
&name, &version, &arch)) {
if (option_conflicts)