aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-11 19:40:00 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-11 19:40:00 +0000
commit5841ff85351f5631375e0048dccf30c42a411b9e (patch)
tree329d321d2c9581565f65aa5bb2fb71e555088c5f /kiss
parent745e7ff76b5d39b3dd7a9ea5448b58bb26f599e4 (diff)
downloadcpt-5841ff85351f5631375e0048dccf30c42a411b9e.tar.gz
kiss: fix bug with repository files polluting '/' (harmless but annoying)
FossilOrigin-Name: fc2562fe03d8d6ec4edca1ccf58e4d0b8652181b6bc5ac91bad0d35a71990391
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss11
1 files changed, 5 insertions, 6 deletions
diff --git a/kiss b/kiss
index 03b93ac..05f2b44 100755
--- a/kiss
+++ b/kiss
@@ -534,7 +534,6 @@ pkg_conflicts() {
# Check to see if a package conflicts with another.
log "[$2] Checking for package conflicts"
- cd "$sys_db"
set +ef
# Extract manifest from tarball and only print files which
@@ -551,7 +550,7 @@ pkg_conflicts() {
# If the generated manifest contains matches, check the
# contents for conflicts.
[ -s "$cac_dir/$pid-m" ] &&
- grep -Fxf "$cac_dir/$pid-m" -- */manifest &&
+ grep -Fxf "$cac_dir/$pid-m" -- "$sys_db"/*/manifest &&
die "Package '$2' conflicts with another package"
set -ef
@@ -679,7 +678,7 @@ pkg_install() {
# This is repeated multiple times. Better to make it a function.
pkg_rsync() {
- rsync --chown=root:root -WhHKa --no-compress "$1" --exclude etc -- \
+ rsync --chown=root:root -WhHKa --no-compress "$1" --exclude etc \
"$tar_dir/$pkg_name/" "$KISS_ROOT/"
}
@@ -726,8 +725,8 @@ pkg_install() {
# Install the package again to fix any non-leftover files being
# removed above.
- pkg_rsync ||:
- pkg_rsync ||:
+ pkg_rsync -v ||:
+ pkg_rsync -v ||:
# Reset 'trap' to its original value. Installation is done so
# we no longer need to block 'Ctrl+C'.
@@ -972,7 +971,7 @@ args() {
;;
v|version|-v|--version)
- printf 'kiss 0.20.2\n'
+ printf 'kiss 0.21.0\n'
;;
h|help|-h|--help|'')