cpt

Carbs Packaging Tools
git clone git://git.carbslinux.org/cpt
Log | Files | Refs | README | LICENSE

commit c93d5af78e8af324bf6722ecfc0f6b8897633de9
parent 11d8261020cd17d1e43c041ef83cfd7148cb3a35
Author: Cem Keylan <cem@ckyln.com>
Date:   Mon, 31 Aug 2020 11:41:53 +0300

warn(): change function behaviour

Diffstat:
Msrc/cpt-lib | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cpt-lib b/src/cpt-lib @@ -281,7 +281,7 @@ getoptions_help() { warn() { # Print a warning message - log "WARN" "$1" "${2:-!>}" + log "$1" "$2" "${3:-WARNING}" } contains() { @@ -1316,7 +1316,7 @@ pkg_etc() { # All other cases. *) - warn "($pkg_name) saving /$file as /$file.new" "->" + warn "$pkg_name" "saving /$file as /$file.new" "->" new=.new ;; esac @@ -1771,7 +1771,7 @@ main() { # Make sure that the CPT_ROOT doesn't end with a '/'. This might # break some operations. [ -z "$CPT_ROOT" ] || [ "${CPT_ROOT##*/}" ] || { - warn "Your CPT_ROOT variable shouldn't end with '/'" + warn "" "Your CPT_ROOT variable shouldn't end with '/'" CPT_ROOT=${CPT_ROOT%/} }