cpt

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

commit 36654d0c8dff023473df9345d3f54840bbcbf940
parent df6110d220208aa2cf615fca2e66150abd46df88
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  3 Apr 2020 18:39:49 +0300

kiss: add repository submodule support

Diffstat:
Mkiss | 12++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/kiss b/kiss @@ -1096,6 +1096,10 @@ pkg_fetch() { if [ -w "$PWD" ] && [ "$uid" != 0 ]; then git fetch git merge + ! [ -e .gitmodules ] || { + git submodule init + git submodule update + } else [ "$uid" = 0 ] || log "$PWD" "Need root to update" @@ -1113,9 +1117,13 @@ pkg_fetch() { log "Dropping permissions to $user for pull" case $su in - su) "$su" -c "git fetch && git merge" "$user" ;; + su) "$su" -c "git fetch && git merge && { ! [ -e .gitmodules ] || { git submodule init ; git submodule update ;} ;}" "$user" ;; *) "$su" -u "$user" git fetch "$su" -u "$user" git merge + ! [ -e .gitmodules ] || { + "$su" -u "$user" git submodule init + "$su" -u "$user" git submodule update + } esac ) fi @@ -1303,7 +1311,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.10.1-carbs ;; + v|version) log kiss 1.11-carbs ;; h|help|-h|--help|'') log 'kiss [a|b|c|f|i|l|r|s|u|v] [pkg] [pkg] [pkg]'