Fix review of dropped packages
Avoid adding e.g. openSUSE:13.2 as reviewer. OBS sometimes returns projects of released openSUSE distributions as maintainer for packages that were dropped from Factory.
This commit is contained in:
parent
dec8e0fc76
commit
b79d40321c
@ -75,6 +75,10 @@ class MaintenanceChecker(ReviewBot.ReviewBot):
|
||||
for p in root.findall('./owner'):
|
||||
prj = p.get("project")
|
||||
pkg = p.get("package")
|
||||
# packages dropped from Factory sometimes point to maintained distros
|
||||
if prj.startswith('openSUSE:Leap') or prj.startswith('openSUSE:1'):
|
||||
self.logger.debug("%s looks wrong as maintainer, skipped", prj)
|
||||
continue
|
||||
if ((prj, pkg) in package_reviews):
|
||||
self.logger.debug("%s/%s already is a reviewer, not adding again" % (prj, pkg))
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user