check for target project too in request finder
prject=openSUSE:Factory package=yast2 finds also packages going into 42, which is not what we want
This commit is contained in:
parent
bb3416d4ad
commit
c99a15b0b4
@ -74,9 +74,9 @@ class RequestFinder(object):
|
||||
|
||||
requests = []
|
||||
for sr in root.findall('request'):
|
||||
# Check the package matches - OBS is case insensitive
|
||||
rq_package = sr.find('action').find('target').get('package')
|
||||
if package.lower() != rq_package.lower():
|
||||
# Check the target matches - OBS query is case insensitive, but OBS is not
|
||||
rq_target = sr.find('action').find('target')
|
||||
if package != rq_target.get('package') or self.api.project != rq_target.get('project'):
|
||||
continue
|
||||
|
||||
request = int(sr.get('id'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user