xbps-query(8): --regex now matches EREs in case insensitive mode.
This commit is contained in:
parent
b7fd0dcac5
commit
94d0e4e131
2
NEWS
2
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.
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user