Skip to content

Commit

Permalink
check for target project too in request finder
Browse files Browse the repository at this point in the history
prject=openSUSE:Factory package=yast2 finds also packages going into 42,
which is not what we want
  • Loading branch information
coolo committed Jul 31, 2015
1 parent bb3416d commit c99a15b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osclib/request_finder.py
Expand Up @@ -74,9 +74,9 @@ def find_request_package(self, package):

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'))
Expand Down

0 comments on commit c99a15b

Please sign in to comment.