Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-02-28 05:08:25 +0000
committerDan McGee <dan@archlinux.org>2007-02-28 05:08:25 +0000
commitbdac9105892dae8b74952f86300e6161363b93d4 (patch)
tree5d6ba247b8ec7da01e87bc36a5572b8e9d381964
parentbd7eb9475cdf3bd6dff62e4a38243cac18ba0c8e (diff)
* Implemented Douglas' suggestion from the ML- print all integrity checks
together while using makepkg -g.
-rwxr-xr-xscripts/makepkg10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index fc81ed4c..3f6fe1d1 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -675,6 +675,12 @@ done
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
warning "Skipping source integrity checks -- using existing src/ tree"
else
+ # TODO we end up checking $GENINTEG 3 times, could probably be refactored
+ if [ "$GENINTEG" = "1" ]; then
+ msg "Generating checksums for source files"
+ plain ""
+ fi
+
for integ in ${INTEGRITY_CHECK[@]}; do
integ="$(echo $integ | tr A-Z a-z)"
case "$integ" in
@@ -692,8 +698,6 @@ else
#Generate integrity checks
if [ "$GENINTEG" = "1" ]; then
- msg "Generating ${integrity_name}s for source files"
- plain ""
ct=0
numsrc=${#source[@]}
for netfile in "${source[@]}"; do
@@ -712,7 +716,6 @@ else
echo
fi
done
- plain ""
#Validate integrity checks
else
integrity_sums=($(eval echo \${${integrity_name}s[@]}))
@@ -744,6 +747,7 @@ else
done
if [ "$GENINTEG" = "1" ]; then
+ plain ""
exit 0
fi
fi