From d4304376fb3cfc9779e3ba579b6e87476c4c64f5 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Mon, 20 Aug 2012 15:28:41 +0800 Subject: [PATCH] convert config data as string while putting to OBS This will cause exception/backtrace with some system. fix #240 --- gitbuildsys/oscapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitbuildsys/oscapi.py b/gitbuildsys/oscapi.py index 5eb337c..7153fe9 100644 --- a/gitbuildsys/oscapi.py +++ b/gitbuildsys/oscapi.py @@ -128,7 +128,7 @@ class OSC(object): url = core.make_meta_url("prjconf", quote_plus(target), self.apiurl, False) try: - self.core_http(core.http_PUT, url, data=config) + self.core_http(core.http_PUT, url, data=''.join(config)) except OSCError, err: raise OSCError("can't copy config from %s to %s: %s" \ % (src, target, err)) -- 2.7.4