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:
Ludwig Nussel 2016-09-26 11:14:38 +02:00
parent dec8e0fc76
commit b79d40321c

View File

@ -75,6 +75,10 @@ class MaintenanceChecker(ReviewBot.ReviewBot):
for p in root.findall('./owner'): for p in root.findall('./owner'):
prj = p.get("project") prj = p.get("project")
pkg = p.get("package") 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): if ((prj, pkg) in package_reviews):
self.logger.debug("%s/%s already is a reviewer, not adding again" % (prj, pkg)) self.logger.debug("%s/%s already is a reviewer, not adding again" % (prj, pkg))
continue continue