merge upstream

This commit is contained in:
Akamaru 2015-09-07 18:11:32 +02:00
parent 510184e398
commit a0307c84b3
2 changed files with 15 additions and 3 deletions

View File

@ -250,7 +250,7 @@ function _send_photo(receiver, file_path, cb_function, cb_extra)
cb_extra = cb_extra
}
-- Call to remove with optional callback
send_photo(receiver, file_path, rmtmp_cb, cb_extra)
send_photo(receiver, file_path, cb_function, cb_extra)
end
-- Download the image and send to receiver, it will be deleted.

View File

@ -67,14 +67,26 @@ install_rocks() {
RET=$?; if [ $RET -ne 0 ];
then echo "Error. Exiting."; exit $RET;
fi
./.luarocks/bin/luarocks install serpent
RET=$?; if [ $RET -ne 0 ];
then echo "Error. Exiting."; exit $RET;
fi
}
install() {
git pull
git submodule update --init --recursive
cd tg && ./configure && make
RET=$?; if [ $RET -ne 0 ];
then echo "Error. Exiting."; exit $RET;
RET=$?; if [ $RET -ne 0 ]; then
echo "Trying without Python...";
./configure --disable-python && make
RET=$?
fi
if [ $RET -ne 0 ]; then
echo "Error. Exiting."; exit $RET;
fi
cd ..
install_luarocks