Skip to content

Commit

Permalink
pkg query -g: Fix handling of character ranges such as 'name-[0-9]*'
Browse files Browse the repository at this point in the history
This broke CONFLICTS handling in many ports.

Similar to 8ccfa88
Reported by:	hrs
  • Loading branch information
bdrewery committed Aug 23, 2014
1 parent db33cf9 commit 57e6993
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libpkg/pkgdb_query.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ pkgdb_get_pattern_query(const char *pattern, match_t match)
if (checkuid == NULL) {
if (checkorigin == NULL)
comp = " WHERE name GLOB ?1 "
"OR (name GLOB SPLIT_VERSION('name', ?1) AND "
" version GLOB SPLIT_VERSION('version', ?1))";
"OR name || '-' || version GLOB ?1";
else
comp = " WHERE origin GLOB ?1";
} else {
Expand Down

0 comments on commit 57e6993

Please sign in to comment.