diff options
author | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-03 16:53:26 +0000 |
---|---|---|
committer | rhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58> | 2009-01-03 16:53:26 +0000 |
commit | c2d39c5d61975591d56e5513318c9e678b1bb56c (patch) | |
tree | 2ba4ed0ad89b60196584f48fa184b72b5b92bde6 /trunk | |
parent | d5449f09069d42b3c40b88a1f740d8f11cfa83e8 (diff) | |
download | simplepkg-c2d39c5d61975591d56e5513318c9e678b1bb56c.tar.gz simplepkg-c2d39c5d61975591d56e5513318c9e678b1bb56c.tar.bz2 |
hash order at Manifest from the weakest/smallest to the strongest
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@726 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rw-r--r-- | trunk/mkbuild/generic.mkSlackBuild | 2 | ||||
-rwxr-xr-x | trunk/src/mkbuild | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild index d4c332a..17ba987 100644 --- a/trunk/mkbuild/generic.mkSlackBuild +++ b/trunk/mkbuild/generic.mkSlackBuild @@ -271,7 +271,7 @@ if [ -e "$CWD/Manifest" ]; then fi # Check source code integrity - for ALGO in md5 sha1 sha256 sha512 rmd160; do + for ALGO in md5 rmd160 sha1 sha256 sha512; do if [ $ALGO = "rmd160" ]; then ALGO_SRC="`openssl rmd160 $MANIFEST_FILE | awk '{ print $2 }'`" else diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index 0fd2218..848ed5a 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -792,7 +792,7 @@ function file_metainfo { fi fi - for algo in md5 sha1 sha256 sha512 rmd160; do + for algo in md5 rmd160 sha1 sha256 sha512; do sum="$sum `echo $algo | tr '[:lower:]' '[:upper:]'` `gethash $algo $file`" done |