mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +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"
|
-L "$URL/$TARBALL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd "$PKGDOWNLOADDIR" > /dev/null
|
echo "$SHA256SUM $PKGDOWNLOADDIR/${TARBALL}" | sha256sum -c --quiet "-"
|
||||||
echo "$SHA256SUM ${TARBALL}" > "${TARBALL}.sha256"
|
|
||||||
sha256sum -c --quiet "${TARBALL}.sha256"
|
|
||||||
rm "${TARBALL}.sha256"
|
|
||||||
popd > /dev/null
|
|
||||||
|
|
||||||
if [ ! -e "$PKGSRCDIR/$SRCDIR" ]; then
|
if [ ! -e "$PKGSRCDIR/$SRCDIR" ]; then
|
||||||
local LOGFILE="$PKGLOGDIR/${PKGNAME}-prepare.log"
|
local LOGFILE="$PKGLOGDIR/${PKGNAME}-prepare.log"
|
||||||
|
|
Loading…
Reference in a new issue