mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
makepkg: Comment on install_package() return code
Previously, install_package() return code was either used as exit code or ignored. This was rather confusing. The return code is now always ignored and a comment on install_package() has been added. Signed-off-by: Pierre Neidhardt <ambrevar@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
87b0818246
commit
2041586829
@ -2072,6 +2072,7 @@ create_srcpackage() {
|
||||
rm -rf "${srclinks}"
|
||||
}
|
||||
|
||||
# this function always returns 0 to make sure clean-up will still occur
|
||||
install_package() {
|
||||
(( ! INSTALL )) && return
|
||||
|
||||
@ -2407,7 +2408,7 @@ check_build_status() {
|
||||
if (( INSTALL )); then
|
||||
warning "$(gettext "A package has already been built, installing existing package...")"
|
||||
install_package
|
||||
exit $?
|
||||
exit 0
|
||||
else
|
||||
error "$(gettext "A package has already been built. (use %s to overwrite)")" "-f"
|
||||
exit 1
|
||||
@ -2430,7 +2431,7 @@ check_build_status() {
|
||||
if (( INSTALL )); then
|
||||
warning "$(gettext "The package group has already been built, installing existing packages...")"
|
||||
install_package
|
||||
exit $?
|
||||
exit 0
|
||||
else
|
||||
error "$(gettext "The package group has already been built. (use %s to overwrite)")" "-f"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user