kiss: search db first when removing packages. Fixes #250

This commit is contained in:
Dylan Araps 2021-07-24 23:53:27 +03:00
parent 3108ca2d71
commit 465d4e2697
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 7 additions and 0 deletions

7
kiss
View File

@ -1701,6 +1701,13 @@ args() {
set -- "${PWD##*/}"
esac
# Search the installed database first when removing packages. Dependency
# files may differ when repositories change. Removal is not dependent on
# the state of the repository.
case $action in r|remove)
export KISS_PATH=$sys_db:$KISS_PATH
esac
# Order the argument list based on dependence.
pkg_order "$@"