Some more hints of what is going on...
The first argument passed is a list containing a string but the repo_put function in ewr_repo_dav.erl expects only a string.
Source code:
ewr_repo_dav.erl:
repo_put([$f,$i,$l,$e,$:,$/,$/|Repo] = FullRepo, Suffix, Payload, _Timeout) ->
FilePath = ewl_file:join_paths(Repo, Suffix),
ewl_file:mkdir_p(filename:dirname(FilePath)),
case file:write_file(FilePath, Payload) of
ok -> {ok, FullRepo};
Error -> Error
end;
...
bash-3.2$ mkdir /tmp/repos
bash-3.2$ faxien publish file:///tmp/repos _build/development/tar/my_server-0.1.0.0.tar.gz Publishing release package
...
{control,"my_server",
[{package_owner,"eCD Market"},
{categories,["server"]},
{description,[]}]}.
...
Creating my_server.tar.gz from my_server-0.1.0.0
a my_server-0.1.0.0/control
publish error
{publish_failure,"Failed for",
because,
{error,
{unhandled,
{'EXIT',
{function_clause,
[{ewr_repo_dav,repo_put,
<<31,139,8,0,0,0,0,0,0,3,237,27,105,111,220,54,118,
18,199,113,226,36,109,154,162,123,20,5,118,96,
... lots more bytes ...
93,233,74,87,186,210,149,174,116,165,81,254,15,
21,222,175,161,0,120,0,0>>,
120000]},
{fax_put,'-payloads_put/2-fun-0-',3},
{lists,foldl,3},
{fax_put,payloads_put,2},
{fax_publish,publish2,4},
{fax_publish,publish,4},
{epkg_cmdln,apply_from_commandline,3},
{epkg_cmdln,cmdln_apply,1}]}}}}}]}
On Dec 23, 2009, at 3:53 PM, Eric Newhuis wrote:
I want to use Faxien on a private project and I don't use an HTTP server to stage my releases. I'll only publish to a private repository but I'd like to pull from private and public.