mirror of
https://github.com/zuno/slackpkgplus
synced 2025-01-15 03:40:49 +01:00
Only reindent.
This commit is contained in:
parent
29722fe22e
commit
9eeb9fcbdd
1 changed files with 309 additions and 311 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue