mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
b647521f81
So far, core.get_prj_results only supports a substring based name filtering mechanism. Now, a regex based name filtering mechanism is used. That is, if the regex matches a package name, the package is not filtered out. This is an API incompatible change: - 3rd party code which looks like this is going to break: class Foo(str): ... def __eq__(self, other): return ... ... = core.get_prj_results(..., name_filter=Foo()) (My gut feeling says there are no such callers. However, if this really breaks any serious code, we can fix it in a follow-up commit) - "osc prjresults openSUSE:Leap:15.2:Update --name-filter zypper." will now also show "zypper-docker" etc. because the dot (".") matches any character (except a newline). Previously, only packages that contained the str "zypper" followed by a dot (".") were shown. The old behavior can be restored, if the dot is escaped: "osc prjresults openSUSE:Leap:15.2:Update --name-filter 'zypper\.'". Of course, this affects all other special characters, too. Additionally, if an illegal regex is passed to the --name-filter option, an exception is raised. The previous code did not fail. This can break existing workflows and scripts. We could avoid this by introducing a --name-filter-regex option but this would clutter the UI (IMHO). A regex based name filtering feature was requested by darix. |
||
---|---|---|
.. | ||
util | ||
__init__.py | ||
.gitignore | ||
babysitter.py | ||
build.py | ||
checker.py | ||
cmdln.py | ||
commandline.py | ||
conf.py | ||
core.py | ||
credentials.py | ||
fetch.py | ||
grabber.py | ||
meter.py | ||
OscConfigParser.py | ||
oscerr.py | ||
oscssl.py | ||
oscsslexcp.py |