summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)