mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
fixing attribute set/create command for final 1.7 API
Conflicts: NEWS osc/core.py
This commit is contained in:
parent
151b9b699d
commit
73b5bc65d5
3
NEWS
3
NEWS
@ -1,6 +1,7 @@
|
||||
|
||||
0.126
|
||||
-
|
||||
- fixed SSL proxy support
|
||||
- fixed meta attribute create and set calls
|
||||
|
||||
0.125
|
||||
- add "osc pull" command to fetch and merge changes in the link target
|
||||
|
@ -584,7 +584,8 @@ class Osc(cmdln.Cmdln):
|
||||
opts.set = opts.set.replace('&', '&').replace('<', '<').replace('>', '>')
|
||||
for i in opts.set.split(','):
|
||||
values += '<value>%s</value>' % i
|
||||
d = '<attributes><attribute name=\'%s\' >%s</attribute></attributes>' % (opts.attribute, values)
|
||||
aname = opts.attribute.split(":")
|
||||
d = '<attributes><attribute namespace=\'%s\' name=\'%s\' >%s</attribute></attributes>' % (aname[0], aname[1], values)
|
||||
url = makeurl(conf.config['apiurl'], attributepath)
|
||||
for data in streamfile(url, http_POST, data=d):
|
||||
sys.stdout.write(data)
|
||||
|
Loading…
Reference in New Issue
Block a user