match downgrade and reinstall in package .install

This commit is contained in:
JerryXiao 2021-10-29 08:27:57 +08:00
parent 87cf03b56d
commit bbbae704c0
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5

View file

@ -247,6 +247,10 @@ def _log_parser(log: List[str], report: checkReport) -> None:
pkg, *_ = _m.groups()
elif _m := REGEX['l_remove'].match(_pmsg):
pkg, *_ = _m.groups()
elif _m := REGEX['l_downgrade'].match(_pmsg):
pkg, *_ = _m.groups()
elif _m := REGEX['l_reinstall'].match(_pmsg):
pkg, *_ = _m.groups()
else:
report.crit(f'[NOM-SCRIPTLET] {_pmsg}')
ln += 1