aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-08 23:17:49 +0000
committermerakor <cem@ckyln.com>2020-05-08 23:17:49 +0000
commit89433fe7759a8e9e2f5944d5dfa6517271a8a75a (patch)
tree21020e38d656defd9548980d4d8aac6c103e2d5c
parente713d5b2e92bdea385884a934eedbea2f40b0204 (diff)
downloadcpt-1.20.3.tar.gz
kiss: fix alternatives bug1.20.3
FossilOrigin-Name: caa9da731eea578379ac53ca4f12ff94ba837a099079ef50c7ec1a21d4c05330
-rw-r--r--CHANGELOG.md8
-rwxr-xr-xkiss4
2 files changed, 10 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e5a7540..89df0eb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,14 @@ this project _somewhat_ adheres to [Semantic Versioning].
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
+1.20.3 - 2020-05-09
+-------------------
+
+### Fixed
+- Fixed an alternatives bug caused by the previous patch, where the package
+ moving to `/var/db/kiss/choices` would take the name of the preferred package.
+
+
1.20.2 - 2020-05-09
-------------------
diff --git a/kiss b/kiss
index 37e153c..5f62511 100755
--- a/kiss
+++ b/kiss
@@ -940,7 +940,7 @@ pkg_swap() {
# the manifest file to reflect this. The reverse of above.
mv -f "$alt" "$2"
sed "$(esc "$PWD/$alt" "$2")" "../installed/$1/manifest" |
- sort -r -o "../installed/$pkg_owns/manifest"
+ sort -r -o "../installed/$1/manifest"
}
pkg_etc() {
@@ -1485,7 +1485,7 @@ args() {
l|list) pkg_list "$@" ;;
u|update) pkg_updates ;;
s|search) for pkg do pkg_find "$pkg" all; done ;;
- v|version) log kiss 1.20.2 ;;
+ v|version) log kiss 1.20.3 ;;
h|help|-h|--help|'')
exec 2>&1