aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 08:40:35 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-18 08:40:35 +0000
commit13688cc91f59da3a8e3fe9e62b98347212facac9 (patch)
tree7df2fed0b45294e08a6a6b4bbd12660ab4928849 /kiss
parenta362d7cf4d25591f555667f12787c801055d42de (diff)
parent7d232caba208ea3901c97e565239d1d2f5f5122d (diff)
downloadcpt-13688cc91f59da3a8e3fe9e62b98347212facac9.tar.gz
Merge branch 'pkg_conflicts' of github.com:kissx/kiss into pkg_conflicts
FossilOrigin-Name: a8bf262a07486a7c3cb0578565693c366a3dc817d728b97342e7bde5321731c3
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 3 insertions, 2 deletions
diff --git a/kiss b/kiss
index ab7a5bb..90e918d 100755
--- a/kiss
+++ b/kiss
@@ -12,6 +12,7 @@ log() {
}
source_type() {
+ [ -z "$1" ] && return 1 # No file.
[ -f "$1" ] && return 2 # Local file.
[ -f "$src_dir/${1##*/}" ] && return 3 # Cached downloaded file.
[ -z "${1##git:*}" ] && return 4 # Git repository.
@@ -50,8 +51,8 @@ pkg_depends() {
[ "$1" = install ] && [ "$opt" = make ] && continue
case $missing in
- *" $dep${opt:+ ($opt)},"*) ;;
- *) missing="$missing $dep${opt:+ ($opt)},"
+ *" $dep,"*) ;;
+ *) missing="$missing $dep,"
pkg_setup "$dep"
pkg_depends ;;
esac