Only reindent.

This commit is contained in:
Matteo Rossini 2013-08-31 01:19:54 +02:00
parent 29722fe22e
commit 9eeb9fcbdd

View file

@ -133,25 +133,23 @@ if [ "$SLACKPKGPLUS" = "on" ];then
fi fi
} }
# override slackpkg checkmd5() # override slackpkg checkmd5()
# Verify if the package was corrupted by checking md5sum # Verify if the package was corrupted by checking md5sum
function checkmd5() { function checkmd5() {
local MD5ORIGINAL local MD5ORIGINAL
local MD5DOWNLOAD local MD5DOWNLOAD
local PREPO local PREPO
PREPO=$(echo $1 | rev | cut -f3 -d/ | rev) PREPO=$(echo $1 | rev | cut -f3 -d/ | rev)
MD5ORIGINAL=$( grep -v "/source/" ${CHECKSUMSFILE} |\ MD5ORIGINAL=$(grep -v "/source/" ${CHECKSUMSFILE} | grep -w $PREPO | grep -m1 "/$(basename $1)$" | cut -f1 -d \ )
grep -w $PREPO |\
grep -m1 "/$(basename $1)$" | cut -f1 -d \ )
MD5DOWNLOAD=$(md5sum ${1} | cut -f1 -d \ ) MD5DOWNLOAD=$(md5sum ${1} | cut -f1 -d \ )
if [ "$MD5ORIGINAL" = "$MD5DOWNLOAD" ]; then if [ "$MD5ORIGINAL" = "$MD5DOWNLOAD" ]; then
echo 1 echo 1
else else
echo 0 echo 0
fi fi
} }
# Found packages in repository. # Found packages in repository.
# This function selects the package from the higher priority # This function selects the package from the higher priority