From 2ce444ee1099d837d4a1a2978edfdfc9d5fe9d96 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 11 Oct 2009 21:50:45 +1000 Subject: 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 Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index dbb1a1e7..e8aaa8b7 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -636,12 +636,8 @@ 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 + error "$(gettext "Integrity checks are missing.")" + exit 1 # TODO: error code fi } @@ -1970,7 +1966,11 @@ elif (( REPKG )); then fi else download_sources - check_checksums + if (( ! SKIPINTEG )); then + check_checksums + else + warning "$(gettext "Skipping integrity checks.")" + fi extract_sources fi -- cgit v1.2.3-70-g09d2