1
0
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:
2010-01-21 10:30:25 +01:00
parent b7d7508b96
commit f6ce4f769f
3 changed files with 7 additions and 2 deletions

4
NEWS
View File

@@ -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

View File

@@ -569,7 +569,8 @@ class Osc(cmdln.Cmdln):
opts.set = opts.set.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
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)

View File

@@ -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