Added new API put_source_path to put content using source OBS API.
This API will be used in job_sync_obs.
Change-Id: Ia4c7246b0f1e93c729bf9ced2c81aedbd4d5aa1e
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
content += buf
return content
+ def put_source_path(self, path, data, query=None):
+ """Put content to remote project/package/file path."""
+ url = core.makeurl(self.apiurl, ['source', core.pathname2url(path)],
+ query=query)
+ self.core_http(core.http_PUT, url, data=data)
+
def get_sr_str(self, reqid):
"""Get the SR xml string by reqid
"""