+ if [ ${wget_wrapper_status} -gt 0 ]; then
+ return 1;
+ fi
+
+ # If we are here, it means the file was successfully downloaded.
+ FINAL_EXT=${arch_ext}
+
+ # Convert to bzip2 format if requested and if it is a tar/gz archive
+ if [ -n "${PREFER_BZIP2_ARCHIVE}" ]; then
+ if is_extension_tar_gzip "${arch_ext}" ; then
+ rcmd "Converting ${PACK}.${arch_ext} to bzip2 format" \
+ gztobz2 ${LFS_PKG_DIR}/${PACK}.${arch_ext}
+ FINAL_EXT="tar.bz2"
+ fi
+ fi
+
+ return 0