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:
Stephan Kulow 2015-07-31 03:28:01 +02:00
parent bb3416d4ad
commit c99a15b0b4

View File

@ -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'))