X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions-update;h=fd458f2969bac989bc12f06ca79898bfe41f36b8;hb=34bf593fed308afb97457d5f94ae019977ba63c9;hp=4c6752923339b32d1ddbefa84b4baf0532fbd873;hpb=6a47d6d86ad7ac2d58c56499baaedb9fdd0aa800;p=hvlinux.git diff --git a/functions-update b/functions-update index 4c67529..fd458f2 100644 --- a/functions-update +++ b/functions-update @@ -155,7 +155,7 @@ detect_file_not_found() { # HTTP: will return error code 404. # FTP: will say "File not found" - if grep "404 Not Found" ${WGET_LOG_FILE} 1> /dev/null 2>&1; then + if grep "404" ${WGET_LOG_FILE} 1> /dev/null 2>&1; then return 0 elif grep "No such file" ${WGET_LOG_FILE} 1> /dev/null 2>&1; then return 0 @@ -189,6 +189,7 @@ static_getpkg() if detect_file_not_found; then # If file was not found, maybe a .tar.gz file exist... ${WGETCMD} ${URL}/${PACK}.tar.gz + if [ ${?} -eq 0 ]; then gztobz2 ${LFS_PKG_DIR}/${PACK}.tar.gz || return 1 return 0 @@ -402,14 +403,14 @@ lpkg() if [ ! -h ${LFS_PKG_DIR}/${FILE} ]; then # The link does not exist. First check if source file exist. - if [ ! -f ${LFS_PKG_BASE}/${SRCSTAGE}/${FILE} ]; then - echo "${FUNCNAME} ${*}" - echo "Missing source file..." - exit 1 - fi + #if [ ! -f ${LFS_PKG_BASE}/${SRCSTAGE}/${FILE} ]; then + # echo "${FUNCNAME} ${*}" + # echo "Missing source file..." + # return 1 + #fi # Create link if it doesn't exist - ln -s ../${SRCSTAGE}/${FILE} ${LFS_PKG_DIR}/${FILE} + action_checkbox_time "Linking ${PACKAGE_NAME}" ln -s ../${SRCSTAGE}/${FILE} ${LFS_PKG_DIR}/${FILE} fi # Create link for patches corresponding to that package: @@ -418,7 +419,7 @@ lpkg() PATCHFILE=$(basename ${patch}) if [ ! -h ${LFS_PKG_DIR}/${PATCHFILE} ]; then # Create link if it doesn't exist - ln -s ../${SRCSTAGE}/${PATCHFILE} ${LFS_PKG_DIR}/${PATCHFILE} + action_checkbox_time "Linking ${PACKAGE_NAME}" ln -s ../${SRCSTAGE}/${PATCHFILE} ${LFS_PKG_DIR}/${PATCHFILE} fi done fi