makepkg: install deps with --repackage

I have noticed that quite a number of packages fail with "makepkg -R"
when their (make)dependencies are not installed. Adjust makepkg to
check for dependencies when used with -R.  This can still be avoided
by using --nodeps/-d.

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2012-06-07 16:09:46 +10:00 committed by Dan McGee
parent d310b6f85c
commit 81dd6ddf0c
1 changed files with 3 additions and 3 deletions

View File

@ -2424,9 +2424,9 @@ if (( SOURCEONLY )); then
exit 0
fi
if (( NODEPS || ( (NOBUILD || REPKG) && !DEP_BIN ) )); then
# no warning message needed for nobuild, repkg
if (( NODEPS || ( REPKG && PKGFUNC ) )); then
if (( NODEPS || (NOBUILD && !DEP_BIN ) )); then
# no warning message needed for nobuild
if (( NODEPS )); then
warning "$(gettext "Skipping dependency checks.")"
fi
elif type -p "${PACMAN%% *}" >/dev/null; then