mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-23 00:08:50 -05:00
* Implemented Douglas' suggestion from the ML- print all integrity checks
together while using makepkg -g.
This commit is contained in:
parent
bd7eb9475c
commit
bdac910589
@ -675,6 +675,12 @@ done
|
|||||||
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
if [ "$NOEXTRACT" = "1" -o "$REPKG" = "1" ]; then
|
||||||
warning "Skipping source integrity checks -- using existing src/ tree"
|
warning "Skipping source integrity checks -- using existing src/ tree"
|
||||||
else
|
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
|
for integ in ${INTEGRITY_CHECK[@]}; do
|
||||||
integ="$(echo $integ | tr A-Z a-z)"
|
integ="$(echo $integ | tr A-Z a-z)"
|
||||||
case "$integ" in
|
case "$integ" in
|
||||||
@ -692,8 +698,6 @@ else
|
|||||||
|
|
||||||
#Generate integrity checks
|
#Generate integrity checks
|
||||||
if [ "$GENINTEG" = "1" ]; then
|
if [ "$GENINTEG" = "1" ]; then
|
||||||
msg "Generating ${integrity_name}s for source files"
|
|
||||||
plain ""
|
|
||||||
ct=0
|
ct=0
|
||||||
numsrc=${#source[@]}
|
numsrc=${#source[@]}
|
||||||
for netfile in "${source[@]}"; do
|
for netfile in "${source[@]}"; do
|
||||||
@ -712,7 +716,6 @@ else
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
plain ""
|
|
||||||
#Validate integrity checks
|
#Validate integrity checks
|
||||||
else
|
else
|
||||||
integrity_sums=($(eval echo \${${integrity_name}s[@]}))
|
integrity_sums=($(eval echo \${${integrity_name}s[@]}))
|
||||||
@ -744,6 +747,7 @@ else
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ "$GENINTEG" = "1" ]; then
|
if [ "$GENINTEG" = "1" ]; then
|
||||||
|
plain ""
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user