From b11aa3630336cf12b3760e9fa3e6bf8a567ce898 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Jan 2016 14:30:52 -0500 Subject: install_*(): Return 0 on success --- (limited to 'src') diff --git a/src/install.sh b/src/install.sh index b14151c..f060b92 100644 --- a/src/install.sh +++ b/src/install.sh @@ -81,6 +81,8 @@ install_system() fi rm "${root}/prokit/installing" + + return 0 } install_find_pkgs() @@ -138,6 +140,8 @@ install_find_pkgs() pkgs="$(resolve_deps "$(cat "${root}/.prokit/packages")" \ "${install_deps}" | xargs printf '%s\n' | sort -u)" printf '%s\n' "${pkgs}" >"${root}/.prokit/packages" + + return 0 } install_deps_cb() @@ -146,6 +150,8 @@ install_deps_cb() local deps="${2}" install_deps="${install_deps}${pkg}: ${deps}${LF}" + + return 0 } install_fname_cb() @@ -155,6 +161,8 @@ install_fname_cb() install_fnames="$(printf '%s\n%s %s/%s' "${install_fnames}" \ "${pkg}" "${install_feed_url}" "${fname}")" + + return 0 } install_md5sum_cb() @@ -164,6 +172,8 @@ install_md5sum_cb() install_md5sums="$(printf '%s\n%s %s' "${install_md5sums}" \ "${pkg}" "${md5sum}")" + + return 0 } install_sha256sum_cb() @@ -173,6 +183,8 @@ install_sha256sum_cb() install_sha256sums="$(printf '%s\n%s %s' \ "${install_sha256sums}" "${pkg}" "${sha256sum}")" + + return 0 } install_get_pkgs() @@ -269,4 +281,6 @@ install_get_pkgs() rmdir "${root}/.prokit" fclose ${status_fd} + + return 0 } -- cgit v0.9.1