From: Zhang Qiang Date: Mon, 20 Aug 2012 07:28:41 +0000 (+0800) Subject: convert config data as string while putting to OBS X-Git-Tag: 0.9~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d4304376fb3cfc9779e3ba579b6e87476c4c64f5;p=tools%2Fgbs.git convert config data as string while putting to OBS This will cause exception/backtrace with some system. fix #240 --- 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))