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

kiss: clean up

This commit is contained in:
Dylan Araps 2019-09-10 12:23:40 +03:00
parent 9e508097c6
commit bbce776b6b

6
kiss
View File

@ -688,12 +688,10 @@ pkg_install() {
while read -r dep dep_type; do
[ "${dep##\#*}" ] || continue
[ "$dep_type" ] || pkg_list "$dep" >/dev/null ||
required_install="$required_install'$dep', "
install_dep="$install_dep'$dep', "
done < "$tar_dir/$pkg_name/$pkg_db/$pkg_name/depends"
[ "$required_install" ] &&
die "[$1] Package requires ${required_install%, }" \
"[$1] Aborting here"
[ "$install_dep" ] && die "[$1] Package requires ${install_dep%, }"
log "[$pkg_name] Installing package"