1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-03-01 01:41:52 -05:00

makepkg: rework --skipinteg

The current --skipinteg is a bit weird.  It does not skip integrity
checks, but instead does them and prints a warning. Change this
behaviour to actually skipping the checks.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2009-10-11 21:50:45 +10:00 committed by Dan McGee
parent 79987c92cb
commit 2ce444ee10
2 changed files with 8 additions and 9 deletions

View File

@ -88,8 +88,7 @@ Options
using "`makepkg -g >> PKGBUILD`".
*--skipinteg*::
Do not fail when the PKGBUILD does not contain any integrity checks, just
print a warning instead.
Do not perform any integrity checks, just print a warning instead.
*-h, \--help*::
Output syntax and command line options.

View File

@ -636,13 +636,9 @@ check_checksums() {
done
if (( ! correlation )); then
if (( SKIPINTEG )); then
warning "$(gettext "Integrity checks are missing.")"
else
error "$(gettext "Integrity checks are missing.")"
exit 1 # TODO: error code
fi
fi
}
extract_sources() {
@ -1970,7 +1966,11 @@ elif (( REPKG )); then
fi
else
download_sources
if (( ! SKIPINTEG )); then
check_checksums
else
warning "$(gettext "Skipping integrity checks.")"
fi
extract_sources
fi