Re: How do I use faxien to publish to a file-system repository?

1 view
Skip to first unread message

Eric Newhuis

unread,
Dec 23, 2009, 5:23:42 PM12/23/09
to erlware-...@googlegroups.com
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;
...

Faxien run:

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
Faxien is currently set to publish to: ["file:///tmp/repos"]
Publishing release package
...
{control,"my_server",
         [{package_owner,"eCD Market"},
          {package_owner_email,"enew...@ecdmarket.com"},
          {categories,["server"]},
          {description,[]}]}.
...
Creating my_server.tar.gz from my_server-0.1.0.0
a my_server-0.1.0.0/releases/0.1.0.0/my_server.script
a my_server-0.1.0.0/releases/0.1.0.0/my_server.rel
a my_server-0.1.0.0/releases/0.1.0.0/my_server.boot
a my_server-0.1.0.0/control
publish error
{publish_failure,"Failed for",
    [{["file:///tmp/repos"],
      because,
      {error,
          {unhandled,
              {'EXIT',
                  {function_clause,
                      [{ewr_repo_dav,repo_put,
                           [["file:///tmp/repos"],
                            "/5.7.2/Generic/releases/my_server/0.1.0.0/my_server.tar.gz",
                            <<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.

Eric Newhuis

unread,
Dec 23, 2009, 4:53:32 PM12/23/09
to erlware-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages