plugins/*: Execute 'notify.disable_colors()' when 'colorize' is set to '0' (disabled) to ignore color redefinitions made by user
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
5e90d9edb5
commit
b5a1a17876
@ -131,7 +131,7 @@ esac
|
||||
. @libdir@/libcfg.lib
|
||||
|
||||
[ "$logging" = "1" ] && let "colorize = 0"
|
||||
[ "$colorize" = "1" ] && notify.enable_colors
|
||||
[ "$colorize" = "1" ] && notify.enable_colors || notify.disable_colors
|
||||
|
||||
notify.debug "[${me[0]}, "$"version"" ${me[1]}]"
|
||||
|
||||
|
@ -131,7 +131,7 @@ for arg in $@; do
|
||||
notify.error $"unrecognized option"" -- \`$arg'"
|
||||
done
|
||||
|
||||
[ "$colorize" = "1" ] && notify.enable_colors
|
||||
[ "$colorize" = "1" ] && notify.enable_colors || notify.disable_colors
|
||||
|
||||
# config.getvar()
|
||||
# Parameters:
|
||||
|
@ -137,7 +137,7 @@ for arg in $@; do
|
||||
notify.error $"unrecognized option"" -- \`$arg'"
|
||||
done
|
||||
|
||||
[ "$colorize" = "1" ] && notify.enable_colors
|
||||
[ "$colorize" = "1" ] && notify.enable_colors || notify.disable_colors
|
||||
|
||||
# s_rpm_pck : the name of the srpm package (local or remote)
|
||||
# (i.e. /usr/src/RPM/SRPMS/automake-1.9-1qilnx.src.rpm)
|
||||
|
@ -310,7 +310,7 @@ fi
|
||||
|
||||
[ "$logging" = "1" ] && let "colorize = 0"
|
||||
|
||||
[ "$colorize" = "1" ] && notify.enable_colors
|
||||
[ "$colorize" = "1" ] && notify.enable_colors || notify.disable_colors
|
||||
# default values for non mandatory configuration variables
|
||||
[ "$logging_dir" ] || logging_dir="${tmppath_dir:-/var/tmp}/@package@"
|
||||
|
||||
|
@ -207,12 +207,12 @@ while :; do
|
||||
shift
|
||||
done
|
||||
|
||||
[ "$colorize" = "1" ] && notify.enable_colors || notify.disable_colors
|
||||
|
||||
for arg in $@; do
|
||||
notify.error $"unrecognized option"" -- \`$arg'"
|
||||
done
|
||||
|
||||
[ "$colorize" = "1" ] && notify.enable_colors
|
||||
|
||||
function specfile.ckeck_defvalues() {
|
||||
# $1: name of the specfile
|
||||
local specfile="$1" currvalue
|
||||
|
Loading…
Reference in New Issue
Block a user