{
# 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
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
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:
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