Commit 5194b88b authored by Boria138's avatar Boria138 Committed by Vitaly Lipatov

Add new functions for translate

parent a6008484
......@@ -82,14 +82,14 @@ case $PMTYPE in
if is_installed $pkg_names ; then
CMD="rpm -q --provides"
else
fatal "FIXME: use hi level commands or download firstly"
fixme "FIXME: use hi level commands or download firstly"
fi
;;
yum-rpm)
if is_installed $pkg_names ; then
CMD="rpm -q --provides"
else
fatal "FIXME: use hi level commands or download firstly"
fixme "FIXME: use hi level commands or download firstly"
fi
;;
dnf-rpm)
......
......@@ -339,6 +339,10 @@ echog()
fi
}
message()
{
echog "$*"
}
# Print error message and stop the program
fatal()
......@@ -354,6 +358,20 @@ fatal()
exit 1
}
# Print error message and stop the program, skippimg translate
fixme()
{
local PROMOMESSAGE="$EPMPROMOMESSAGE"
[ -n "$PROMOMESSAGE" ] || PROMOMESSAGE=" (you can discuss the epm $EPMVERSION problem in Telegram: https://t.me/useepm)"
set_color $RED >&2
echo -n "ERROR: " >&2
restore_color >&2
echo "$* $PROMOMESSAGE" >&2
# [ "$TERM" = "screen" ] && echo "(screen detected: waiting ten seconds to exit ...)" >&2 && sleep 10
exit 1
}
# Print debug message
debug()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment