if [ "$4" == "--no-verbose" ]; then
wget_verbose="--no-verbose"
curl_verbose="-#"
- echo " "
+ echo ""
fi
if [ "$protocol" == "http" ]; then
fi
fi
+ if [ "$4" == "--no-verbose" ]; then
+ echo ""
+ fi
+
}
function simplaret_repository {
if [ "`package_version $candidate`" == "`package_version $result`" ] && \
[ "`package_build $candidate`" == "`package_build $result`" ]; then
if [ "$3" != "--silent" ]; then
- echo package $candidate already downloaded
- # echo package $candidate stored at `dirname $file`
+ echo Package $candidate already downloaded
+ # echo Package $candidate stored at `dirname $file`
else echo $file
fi
return 1
if [ ! -f "$folder/$candidate" ]; then
if [ "$2" != "--silent" ]; then
- echo error downloading $candidate from $repos_type repository $repository_url, please check your settings
+ echo Error downloading $candidate from $repos_type repository $repository_url, please check your settings
fi
return 1
else
if [ "$2" != "--silent" ]; then
silent=""
- echo package $candidate stored at $folder
+ echo Package $candidate stored at $folder
else
echo $folder/$candidate
silent="--silent"
# check if the patch was already downloaded
if echo "$DOWNLOADED_PATCHES" | grep -q " $ARCH:$VERSION:$sugested "; then
- echo "jail $root needs package $sugested (already downloaded, skipping)"
+ echo "Jail $root needs package $sugested (already downloaded, skipping)"
fi
# search if its installed in the jail
DISTRO_UPDATED="$DISTRO_UPDATED $ARCH:$VERSION " # the ending space is important
fi
- echo fetching patches for arch $ARCH and version $VERSION for jail $root
+ echo Fetching patches for arch $ARCH and version $VERSION for jail $root
# list all available patches from PATCHES and ROOT repositories
for sugested in `simplaret_search --formatted | grep patches | grep -v ",repos," | grep -v ",noarch,"`; do
if [ ! -f "$1" ] || [ ! -f "$2" ]; then
if [ "$3" != "--silent" ]; then
- echo checksum error: file not found
+ echo Checksum error: file not found
fi
return 1
fi
return 1
elif [ "$checksum" != "`md5sum $2 | awk '{ print $1 }'`" ]; then
if [ "$3" != "--silent" ]; then
- echo checksum mismatch for file `basename $file`
+ echo Checksum mismatch for file `basename $file`
fi
return 1
else
if [ "$3" != "--silent" ]; then
- echo checksum ok for file `basename $file`
+ echo Checksum ok for file `basename $file`
fi
return 0
fi