cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 04b15f2f2358c6d44da275579a17de38a76c2a3e
parent f99c3f8606bf03c99ab4473e7f6dbb5d2457c781
Author: Cem Keylan <cem@ckyln.com>
Date:   Sat,  9 May 2020 02:17:49 +0300

kiss: fix alternatives bug

Diffstat:
MCHANGELOG.md | 8++++++++
Mkiss | 4++--
2 files changed, 10 insertions(+), 2 deletions(-)

diff --git 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 @@ -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