Not signed in (Sign In)
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentAuthorsuperk
    • CommentTimeDec 13th 2007
     
    On revision 460 (see below), I had a problem when running the setup for a new project, in which the setup would try to create the directory named <project_name>/<project_name> e.g.

    [ akelos $] ./akelos TEST
    ...
    Creating directory /home/user/akelos/TEST/TEST

    There where some errors during the installation process:

    * Can't create directory: /home/user/akelos/TEST

    I fixed the problem when I added a test to see whether the $path already includes the destination directory name:
    function _getDestinationPath($path)
    {
    if (!strstr ($path, $this->options['directory'])) {
    $res = str_replace($this->options['source'], $this->options['directory'], $path); }
    else { $res = $path; }
    return $res;
    }


    Here's the diff
    Index: script/setup
    ===================================================================
    --- script/setup (revision 460)
    +++ script/setup (working copy)
    @@ -232,7 +232,10 @@
    */
    function _getDestinationPath($path)
    {
    - return str_replace($this->options['source'], $this->options['directory'], $path);
    + if (!strstr ($path, $this->options['directory'])) {
    + $res = str_replace($this->options['source'], $this->options['directory'], $path); }
    + else { $res = $path; }
    + return $res;
    }

    /**
    • CommentAuthorKaste
    • CommentTimeDec 15th 2007
     

    try using

     akelos -h
     script/setup -h
    

    to get some help.

    script/setup -d path/to/destiny
    

    should work as expected.

    Otherwise if you still feel you have found a bug, please ticketize it, and send in your patch/diff.

Add your comments
    Username Password
  • Format comments as