diff --git a/NEWS b/NEWS index a063202b..3361152e 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,7 @@ xbps-0.44 (???): + * xbps-query(8): --regex option now matches EREs in case insensitive mode. + * libxbps: globally check for unresolved shared libraries before accepting a transaction to make sure there's no broken packages. diff --git a/bin/xbps-query/ownedby.c b/bin/xbps-query/ownedby.c index 4e3e175a..ca89b2e3 100644 --- a/bin/xbps-query/ownedby.c +++ b/bin/xbps-query/ownedby.c @@ -181,7 +181,7 @@ ownedby(struct xbps_handle *xhp, const char *pat, bool repo, bool regex) if (regex) { ffd.rematch = true; - if (regcomp(&ffd.regex, ffd.pat, REG_EXTENDED|REG_NOSUB) != 0) + if (regcomp(&ffd.regex, ffd.pat, REG_EXTENDED|REG_NOSUB|REG_ICASE) != 0) return EINVAL; } if (repo) diff --git a/bin/xbps-query/search.c b/bin/xbps-query/search.c index fc628bb8..de866a49 100644 --- a/bin/xbps-query/search.c +++ b/bin/xbps-query/search.c @@ -237,7 +237,7 @@ search(struct xbps_handle *xhp, bool repo_mode, const char *pat, const char *pro sd.regex = regex; if (regex) { - if (regcomp(&sd.regexp, pat, REG_EXTENDED|REG_NOSUB) != 0) + if (regcomp(&sd.regexp, pat, REG_EXTENDED|REG_NOSUB|REG_ICASE) != 0) return errno; } sd.repo_mode = repo_mode;