mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
- fixed copy_pac
This commit is contained in:
parent
af035f683e
commit
2b3fdb4588
@ -3646,7 +3646,7 @@ def copy_pac(src_apiurl, src_project, src_package,
|
|||||||
(fd, tmpfile) = tempfile.mkstemp(prefix='osc-copypac')
|
(fd, tmpfile) = tempfile.mkstemp(prefix='osc-copypac')
|
||||||
get_source_file(src_apiurl, src_project, src_package, n, targetfilename=tmpfile, revision=revision)
|
get_source_file(src_apiurl, src_project, src_package, n, targetfilename=tmpfile, revision=revision)
|
||||||
u = makeurl(dst_apiurl, ['source', dst_project, dst_package, pathname2url(n)], query=query)
|
u = makeurl(dst_apiurl, ['source', dst_project, dst_package, pathname2url(n)], query=query)
|
||||||
http_PUT(u, file = n)
|
http_PUT(u, file = tmpfile)
|
||||||
finally:
|
finally:
|
||||||
if not tmpfile is None:
|
if not tmpfile is None:
|
||||||
os.unlink(tmpfile)
|
os.unlink(tmpfile)
|
||||||
|
Loading…
Reference in New Issue
Block a user