From 2f7070ae96964bf1835582330c16f9aa7485b38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 7 Aug 2009 07:51:00 +0000 Subject: [PATCH] can it be that hard ... --- osc/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osc/core.py b/osc/core.py index 3aebad84..b5902e29 100755 --- a/osc/core.py +++ b/osc/core.py @@ -2309,7 +2309,9 @@ def get_request_list(apiurl, project, package, req_who='', req_state=('new',), r if req_who: if len(m): m += '%20or%20' m += 'state/@who=\'%s\'' % quote_plus(req_who) - if len(m): match += "%20and%20(" + m + ")" + if len(m): + if len(match): match += "%20and%20" + match += "(" + m + ")" # XXX: we cannot use the '|' in the xpath expression because it is not supported # in the backend