cpt

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

commit 3b4e8083e837507676b72eeae232450a2cf5c0b5
parent 2ba1a2a0c562926bcbbf04a87e01f61b5b39c03c
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Mon,  9 Mar 2020 00:14:06 +0200

kiss: Remove depends file if empty

Diffstat:
Mkiss | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/kiss b/kiss @@ -448,6 +448,9 @@ pkg_fixdeps() { # Display a diff of the new dependencies against the old ones. diff "$dep_file" depends 2>/dev/null ||: + + # Remove the depends file if it is empty. + [ -s depends ] || rm -f depends } pkg_manifest() ( @@ -1310,7 +1313,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.7.6 ;; + v|version) log kiss 1.7.7 ;; h|help|-h|--help|'') log 'kiss [a|b|c|i|l|r|s|u|v] [pkg] [pkg] [pkg]'