Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
fix %Ok and %Ov in query
Baptiste Daroussin committed 14 years ago
commit 06ffcd4e0d324cb62b18d039a0e39f6e2ace412c
parent d0725fcf75677d9908701a5c28be7d18803cc0d2
1 file changed +2 -1
modified pkg/query.c
@@ -142,7 +142,7 @@ print_query(struct pkg *pkg, char *qstr, match_t query_flags)
			format_str(pkg, output, qstr, cat);
			printf("%s\n", sbuf_data(output));
		}
-
	} else if (query_flags & PKG_LOAD_SCRIPTS) {
+
	} else if (query_flags & PKG_LOAD_OPTIONS) {
		while (pkg_options(pkg, &option) == EPKG_OK) {
			format_str(pkg, output, qstr, option);
			printf("%s\n", sbuf_data(output));
@@ -243,6 +243,7 @@ analyse_query_string(char *qstr, int *flags)
					*flags |= PKG_LOAD_SCRIPTS;
					break;
				case 'O':
+
					qstr++;
					if (qstr[0] != 'k' && qstr[0] != 'v') {
						fprintf(stderr, "Invalid query: %%O should be followed by: k or v\n");
						return (EPKG_FATAL);