mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 09:36:21 +01:00
Print URLs and xpaths in debug rather than verbose mode
This commit is contained in:
parent
615935de27
commit
79b8c34aa6
@ -3327,7 +3327,7 @@ def makeurl(baseurl, l, query=[]):
|
|||||||
function. In case of a list not -- this is to be backwards compatible.
|
function. In case of a list not -- this is to be backwards compatible.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if conf.config['verbose']:
|
if conf.config['debug']:
|
||||||
print('makeurl:', baseurl, l, query)
|
print('makeurl:', baseurl, l, query)
|
||||||
|
|
||||||
if isinstance(query, type(list())):
|
if isinstance(query, type(list())):
|
||||||
@ -4362,7 +4362,7 @@ def get_review_list(apiurl, project='', package='', byuser='', bygroup='', bypro
|
|||||||
xpath_base = xpath_join(xpath_base, 'action/source/@%(kind)s=\'%(val)s\'', op='or', inner=True)
|
xpath_base = xpath_join(xpath_base, 'action/source/@%(kind)s=\'%(val)s\'', op='or', inner=True)
|
||||||
xpath = xpath_join(xpath, xpath_base % {'kind': kind, 'val': val}, op='and', nexpr_parentheses=True)
|
xpath = xpath_join(xpath, xpath_base % {'kind': kind, 'val': val}, op='and', nexpr_parentheses=True)
|
||||||
|
|
||||||
if conf.config['verbose']:
|
if conf.config['debug']:
|
||||||
print('[ %s ]' % xpath)
|
print('[ %s ]' % xpath)
|
||||||
res = search(apiurl, request=xpath)
|
res = search(apiurl, request=xpath)
|
||||||
collection = res['request']
|
collection = res['request']
|
||||||
@ -4414,7 +4414,7 @@ def get_exact_request_list(apiurl, src_project, dst_project, src_package=None, d
|
|||||||
if req_type:
|
if req_type:
|
||||||
xpath += " and action/@type=\'%s\'" % req_type
|
xpath += " and action/@type=\'%s\'" % req_type
|
||||||
|
|
||||||
if conf.config['verbose']:
|
if conf.config['debug']:
|
||||||
print('[ %s ]' % xpath)
|
print('[ %s ]' % xpath)
|
||||||
|
|
||||||
res = search(apiurl, request=xpath)
|
res = search(apiurl, request=xpath)
|
||||||
@ -4453,7 +4453,7 @@ def get_request_list(apiurl, project='', package='', req_who='', req_state=('new
|
|||||||
for i in exclude_target_projects:
|
for i in exclude_target_projects:
|
||||||
xpath = xpath_join(xpath, '(not(action/target/@project=\'%(prj)s\'))' % {'prj': i}, op='and')
|
xpath = xpath_join(xpath, '(not(action/target/@project=\'%(prj)s\'))' % {'prj': i}, op='and')
|
||||||
|
|
||||||
if conf.config['verbose']:
|
if conf.config['debug']:
|
||||||
print('[ %s ]' % xpath)
|
print('[ %s ]' % xpath)
|
||||||
queries = {}
|
queries = {}
|
||||||
if withfullhistory:
|
if withfullhistory:
|
||||||
|
Loading…
Reference in New Issue
Block a user