LuaDist / Repository

Repository of LuaDist modules available for installation using the luadist-git command line tool
www.luadist.org
243 stars 41 forks source link

Reinstall module. #189

Closed moteus closed 10 years ago

moteus commented 10 years ago

I try use BuildHive to test LuaDist files. And I faced with small problem. When I call e.g. luadist _test install libzmq and libzmq already installed luadist fail and all script also fail.

PS. Could use BuildHive to build test instead of Travis because there no need change in repo itself. This is my basic script for test my repo.

if [ ! -d _luadist ]; then
  git clone --recursive git://github.com/LuaDist/bootstrap.git _luadist;
  cd _luadist && ./bootstrap;
  cd ..;

  if [ -f ~/luadist ]; then
    rm ~/luadist;
  fi

  ln -s "$PWD/_luadist/_install/bin/luadist" ~/luadist;

  ~/luadist _test install lua-5.1.5;
fi

~/luadist _test make .
drahosp commented 10 years ago

I am currently preparing another release for luadist-git that has much improved error handling and error reporting included plus some other changes. This is one of the issues it will resolve.

In the mean time, you can simply avoid the failure by adding another command after the luadist command itself, the return value of the luadist command will therefore be ignored. Eg: luadist _test install libzmq; echo

moteus commented 10 years ago

Thanks