Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix files in query
Baptiste Daroussin committed 14 years ago
commit 34da6647ac94a764dbb4f06622f29cabf289a5c8
parent 06ffcd4e0d324cb62b18d039a0e39f6e2ace412c
1 file changed +1 -1
modified pkg/query.c
@@ -148,7 +148,7 @@ print_query(struct pkg *pkg, char *qstr, match_t query_flags)
			printf("%s\n", sbuf_data(output));
		}
	} else if (query_flags & PKG_LOAD_FILES) {
-
		while (pkg_files(pkg, &file)) {
+
		while (pkg_files(pkg, &file) == EPKG_OK) {
			format_str(pkg, output, qstr, file);
			printf("%s\n", sbuf_data(output));
		}