mirror of
https://github.com/openSUSE/osc.git
synced 2026-03-03 16:01:51 +01:00
fixing attribute set/create command for final 1.7 API
This commit is contained in:
4
NEWS
4
NEWS
@@ -1,4 +1,8 @@
|
||||
|
||||
0.125.3
|
||||
- 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
|
||||
- new proxy support via SSL
|
||||
|
||||
@@ -569,7 +569,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)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# and distributed under the terms of the GNU General Public Licence,
|
||||
# either version 2, or version 3 (at your option).
|
||||
|
||||
__version__ = '0.125.2'
|
||||
__version__ = '0.125.3'
|
||||
|
||||
# __store_version__ is to be incremented when the format of the working copy
|
||||
# "store" changes in an incompatible way. Please add any needed migration
|
||||
|
||||
Reference in New Issue
Block a user