mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-16 10:36:13 +01:00
more tabs expanded
This commit is contained in:
parent
56d4f12dbd
commit
bcb16c3320
@ -157,7 +157,7 @@ class Pac:
|
|||||||
|
|
||||||
self.mp['filename'] = self.filename
|
self.mp['filename'] = self.filename
|
||||||
if self.mp['repopackage'] == '_repository':
|
if self.mp['repopackage'] == '_repository':
|
||||||
self.mp['repofilename'] = self.mp['name']
|
self.mp['repofilename'] = self.mp['name']
|
||||||
else:
|
else:
|
||||||
self.mp['repofilename'] = self.mp['filename']
|
self.mp['repofilename'] = self.mp['filename']
|
||||||
|
|
||||||
|
10
osc/core.py
10
osc/core.py
@ -3749,12 +3749,12 @@ def search(apiurl, search_list, kind, search_term, verbose = False, exact_matche
|
|||||||
result = []
|
result = []
|
||||||
for node in root.findall(kind):
|
for node in root.findall(kind):
|
||||||
if role_filter:
|
if role_filter:
|
||||||
skip = 1
|
skip = 1
|
||||||
for p in node.findall('person'):
|
for p in node.findall('person'):
|
||||||
if p.get('userid') == role_filter[0] and p.get('role') == role_filter[1]:
|
if p.get('userid') == role_filter[0] and p.get('role') == role_filter[1]:
|
||||||
skip = 0
|
skip = 0
|
||||||
if skip:
|
if skip:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# TODO: clarify if we need to check if node.get() returns 'None'.
|
# TODO: clarify if we need to check if node.get() returns 'None'.
|
||||||
# If it returns 'None' something is broken anyway...
|
# If it returns 'None' something is broken anyway...
|
||||||
|
Loading…
Reference in New Issue
Block a user