# HG changeset patch # User Antoine Bodin # Date 1297480765 -3600 # Node ID 5ff5f524bc059d94d52738efbb34b4649d37a589 # Parent 9cc115298e1ae9d7628dd76bed03c4482f4d0fbb Fix an error into check_for_tarball function diff -r 9cc115298e1a -r 5ff5f524bc05 tazwok --- a/tazwok Sat Feb 12 04:01:24 2011 +0100 +++ b/tazwok Sat Feb 12 04:19:25 2011 +0100 @@ -454,14 +454,14 @@ fi fi if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ] && \ - [ ! -f "$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.lzma" ]; then + [ ! -f "$SOURCES_REPOSITORY/${SOURCE:-PACKAGE}-$VERSION.tar.lzma" ]; then report step "Download failed, try with mirror copy (again)... " file=$(basename $WGET_URL) download http://mirror.slitaz.org/sources/packages/${file:0:1}/$file fi # Exit if download failed to avoid errors. - if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ]; then + if [ ! -f "$SOURCES_REPOSITORY/$TARBALL" ] && [ ! -f "$SOURCES_REPOSITORY/${SOURCE:-PACKAGE}-$VERSION.tar.lzma" ; then echo -e "\nDownload failed, exiting. Please check WGET_URL variable.\n" >&2 report end-step return 1