aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-27 09:19:08 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-27 09:19:08 +0000
commitfdc238d49e192f7ed28b43cb6efc98c831ba752a (patch)
tree9aecd2c7e6aa733231b05a4846b1e37375dc2ab3
parent20087a409a02817a9c69dc779de4b74f88e94626 (diff)
downloadcpt-fdc238d49e192f7ed28b43cb6efc98c831ba752a.tar.gz
kiss: Fix install issues
FossilOrigin-Name: 752c6c24aed267a61b6ffd441e455be306a35726344c478a7654dc4f8d3faeb1
-rwxr-xr-xkiss13
1 files changed, 9 insertions, 4 deletions
diff --git a/kiss b/kiss
index ce45dc3..cb6753c 100755
--- a/kiss
+++ b/kiss
@@ -497,8 +497,8 @@ pkg_build() {
[ -f "$bin_dir/$pkg#$version-$release.tar.gz" ] && {
log "$pkg" "Found pre-built binary, installing"
- KISS_FORCE=1 \
- pkg_install "$bin_dir/$pkg#$version-$release.tar.gz"
+ (KISS_FORCE=1 \
+ pkg_install "$bin_dir/$pkg#$version-$release.tar.gz")
# Remove the now installed package from the build
# list. No better way than using 'sed' in POSIX 'sh'.
@@ -586,8 +586,8 @@ pkg_build() {
log "$pkg" "Needed as a dependency or has an update, installing"
- KISS_FORCE=1 \
- pkg_install "$bin_dir/$pkg#$version-$release.tar.gz"
+ (KISS_FORCE=1 \
+ pkg_install "$bin_dir/$pkg#$version-$release.tar.gz")
done
# End here as this was a system update and all packages have been installed.
@@ -1129,6 +1129,11 @@ args() {
}
main() {
+ # Ensure that debug mode is never enabled to
+ # prevent internal package manager information
+ # from leaking to stdout.
+ set +x
+
# Set the location to the repository and package database.
pkg_db=var/db/kiss/installed