1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

Merge branch 'master' of github.com:kissx/kiss

This commit is contained in:
Dylan Araps 2019-06-16 17:44:42 +03:00
commit 333b77dfe7

15
kiss
View File

@ -41,14 +41,17 @@ pkg_setup() {
} }
pkg_depends() { pkg_depends() {
while read -r dep; do while read -r dep opt; do
pkg_list "$dep" || pkg_list "$dep" || {
[ "$1" = install ] && [ "$opt" = make ] && continue
case $missing in case $missing in
*" $dep,"*) ;; *" $dep${opt:+ ($opt)},"*) ;;
*) missing="$missing $dep," *) missing="$missing $dep${opt:+ ($opt)},"
pkg_setup "$dep" pkg_setup "$dep"
pkg_depends ;; pkg_depends ;;
esac esac
}
done 2>/dev/null < depends done 2>/dev/null < depends
} }
@ -200,7 +203,9 @@ args() {
pkg_checksum pkg_checksum
log "Generated checksums." ;; log "Generated checksums." ;;
i*) pkg_install ;; i*) pkg_depends install
pkg_install ;;
l*) pkg_list "$2" ;; l*) pkg_list "$2" ;;
r*) pkg_remove || die "Package '$name' not installed" ;; r*) pkg_remove || die "Package '$name' not installed" ;;
u*) pkg_updates ;; u*) pkg_updates ;;