From 73b5bc65d58cc95329071af201104c8f22d3d824 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Thu, 21 Jan 2010 10:31:53 +0100 Subject: [PATCH] fixing attribute set/create command for final 1.7 API Conflicts: NEWS osc/core.py --- NEWS | 3 ++- osc/commandline.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index b03eed12..1f7db98b 100644 --- a/NEWS +++ b/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 diff --git a/osc/commandline.py b/osc/commandline.py index 0ca14035..189c1544 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -584,7 +584,8 @@ class Osc(cmdln.Cmdln): opts.set = opts.set.replace('&', '&').replace('<', '<').replace('>', '>') for i in opts.set.split(','): values += '%s' % i - d = '%s' % (opts.attribute, values) + aname = opts.attribute.split(":") + d = '%s' % (aname[0], aname[1], values) url = makeurl(conf.config['apiurl'], attributepath) for data in streamfile(url, http_POST, data=d): sys.stdout.write(data)