From 89433fe7759a8e9e2f5944d5dfa6517271a8a75a Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 8 May 2020 23:17:49 +0000 Subject: kiss: fix alternatives bug FossilOrigin-Name: caa9da731eea578379ac53ca4f12ff94ba837a099079ef50c7ec1a21d4c05330 --- CHANGELOG.md | 8 ++++++++ kiss | 4 ++-- 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 -- cgit v1.2.3