1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 09:16:14 +01:00

reqeuest list -s X,Y was broken, a state can have only one value. And

there is no personality splitting in OBS either ;)
This commit is contained in:
Adrian Schröter 2009-08-07 07:32:10 +00:00
parent 690857d452
commit 9b722d61f4
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@ -6,6 +6,7 @@
- new osc rremove command for remote source files removal
- handle _service\* files correctly
- osc commit asks if some file has a '?' status (can be skipped by --force option)
- fixed request list for multiple states
0.120:
- support "setlinkrev" for whole projects

View File

@ -2301,10 +2301,10 @@ def get_request_list(apiurl, project, package, req_who='', req_state=('new',), r
matches = []
match=''
for state in req_state:
if len(match): match += '%20and%20'
if len(match): match += '%20or%20'
match += 'state/@name=\'%s\'' % quote_plus(state)
if req_who:
if len(match): match += '%20and%20'
if len(match): match += '%20or%20'
match += 'state/@who=\'%s\'' % quote_plus(req_who)
# XXX: we cannot use the '|' in the xpath expression because it is not supported