mirror of
https://github.com/pygos/build.git
synced 2024-12-23 23:50:51 +01:00
Directly pipe checksum into comparison tool in download function
Don't create unneccessary temporary files. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
1d8a794e1f
commit
f9a6cc2e73
1 changed files with 1 additions and 5 deletions
|
@ -10,11 +10,7 @@ fetch_package() {
|
|||
-L "$URL/$TARBALL"
|
||||
fi
|
||||
|
||||
pushd "$PKGDOWNLOADDIR" > /dev/null
|
||||
echo "$SHA256SUM ${TARBALL}" > "${TARBALL}.sha256"
|
||||
sha256sum -c --quiet "${TARBALL}.sha256"
|
||||
rm "${TARBALL}.sha256"
|
||||
popd > /dev/null
|
||||
echo "$SHA256SUM $PKGDOWNLOADDIR/${TARBALL}" | sha256sum -c --quiet "-"
|
||||
|
||||
if [ ! -e "$PKGSRCDIR/$SRCDIR" ]; then
|
||||
local LOGFILE="$PKGLOGDIR/${PKGNAME}-prepare.log"
|
||||
|
|
Loading…
Reference in a new issue