repo_checker: adapt checkrepo._toignore() as ignore_from_package().
This commit is contained in:
parent
5775d2247d
commit
1f6f275a53
@ -6,6 +6,7 @@ import sys
|
|||||||
|
|
||||||
from osc import conf
|
from osc import conf
|
||||||
from osclib.conf import Config
|
from osclib.conf import Config
|
||||||
|
from osclib.core import binary_list
|
||||||
from osclib.core import depends_on
|
from osclib.core import depends_on
|
||||||
from osclib.core import maintainers_get
|
from osclib.core import maintainers_get
|
||||||
from osclib.core import request_staged
|
from osclib.core import request_staged
|
||||||
@ -129,6 +130,13 @@ class RepoChecker(ReviewBot.ReviewBot):
|
|||||||
_, basename = filename.split('-', 1)
|
_, basename = filename.split('-', 1)
|
||||||
ignore.add(basename[:-4])
|
ignore.add(basename[:-4])
|
||||||
|
|
||||||
|
def ignore_from_package(self, project, package, arch, ignore):
|
||||||
|
"""Extract rpm names from current build of package."""
|
||||||
|
for binary in binary_list(self.apiurl, project, 'standard', arch, package):
|
||||||
|
ignore.add(binary.name)
|
||||||
|
|
||||||
|
return ignore
|
||||||
|
|
||||||
def check_action_delete(self, request, action):
|
def check_action_delete(self, request, action):
|
||||||
creator = request.get_creator()
|
creator = request.get_creator()
|
||||||
# Force include project maintainers in addition to package owners.
|
# Force include project maintainers in addition to package owners.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user