Skip to content

Commit

Permalink
improve messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vitlav committed Sep 16, 2024
1 parent 55607ae commit 4bbd1a0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bin/epm-Install
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ epm_Install()
local names="$(echo $pkg_names | filter_out_installed_packages)"
local files="$(echo $pkg_files | filter_out_installed_packages)"

[ -z "$files$names" ] && info "Install: Skip empty install list." && return 22
[ -z "$files$names" ] && info "Install: Empty install list was skipped." && return 22

epm_update || { [ -n "$force" ] || return ; }

Expand Down
5 changes: 4 additions & 1 deletion bin/epm-download
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ __check_if_wildcard_downloading()
is_wildcard "$mask" || return 1

local fn
fn="$(docmd eget --list "$url" | xargs -n1 basename)"
fn="$(docmd eget --list "$url" | xargs -n1 basename 2>/dev/null)"
# just return if there is no answer
[ -n "$fn" ] || return 0

local wf="$(epm print shortname from filename $fn | wc -l)"
local ws="$(epm print shortname from filename $fn | sort -u | wc -l)"
# not the same package of various versions
Expand Down
6 changes: 3 additions & 3 deletions bin/epm-install
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ epm_install()
__handle_pkg_urls_to_install
fi

[ -z "$pkg_files$pkg_names" ] && info "Skip empty install list" && return 22
[ -z "$pkg_files$pkg_names" ] && info "Empty install list was skipped" && return 22

# to be filter happy
warmup_lowbase
Expand All @@ -490,7 +490,7 @@ epm_install()
# can be empty only after all installed packages were skipped
if [ -z "$files$names" ] ; then
# TODO: assert $skip_installed
[ -n "$verbose" ] && info "Skip empty install list (filtered out, all requested packages is already installed)"
[ -n "$verbose" ] && info "Empty install list was skipped (filtered out, all requested packages is already installed)"
# FIXME: see to_remove below
return 0
fi
Expand All @@ -511,7 +511,7 @@ epm_install()
;;
esac

[ -z "$files" ] && debug "Skip empty install files list" && return 0
[ -z "$files" ] && debug "Empty install files list was skipped" && return 0

if [ -n "$download_only" ] ; then
# save files to the current dir before install and repack
Expand Down
2 changes: 1 addition & 1 deletion bin/epm-repack
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ epm_repack()
fi

[ -n "$pkg_names" ] && warning 'Can'\''t find $pkg_names files'
[ -z "$pkg_files" ] && info "Skip empty repack list" && return 22
[ -z "$pkg_files" ] && info "Empty repack list was skipped" && return 22

if __epm_repack $pkg_files && [ -n "$repacked_pkgs" ] ; then
if [ -n "$install" ] ; then
Expand Down
2 changes: 1 addition & 1 deletion bin/epm-simulate
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ EOF

epm_simulate()
{
[ -z "$pkg_filenames" ] && info "Simulate: Skip empty list" && return 22
[ -z "$pkg_filenames" ] && info "Simulate: skipped due empty list" && return 22

local filenames="$(echo $pkg_filenames | filter_out_installed_packages)"

Expand Down
20 changes: 10 additions & 10 deletions po/eepm.po
Original file line number Diff line number Diff line change
Expand Up @@ -1164,20 +1164,20 @@ msgid "Have no suitable appropriate install command for $PMTYPE"
msgstr "Нет подходящей команды для установки для $PMTYPE"

#: ../bin/epm-install:477
msgid "Skip empty install list"
msgstr "Пропустить пустой список для установки"
msgid "Empty install list was skipped"
msgstr "Пропускаем пустой список для установки"

#: ../bin/epm-install:490
msgid ""
"Skip empty install list (filtered out, all requested packages is already "
"Empty install list was skipped (filtered out, all requested packages is already "
"installed)"
msgstr ""
"Пропустить пустой список для установки (отфильтровано, все запрошенные "
"Пропускаем пустой список для установки (отфильтровано, все запрошенные "
"пакеты уже установлены)"

#: ../bin/epm-install:511
msgid "Skip empty install files list"
msgstr "Пропустить пустой список файлов для установки"
msgid "Empty install files list was skipped"
msgstr "Пропускаем пустой список файлов для установки"

#: ../bin/epm-reinstall:37
msgid "Please send me the correct command form for it"
Expand Down Expand Up @@ -1681,8 +1681,8 @@ msgid "Can't find $pkg_names files"
msgstr "Не удается найти файлы $pkg_names"

#: ../bin/epm-repack:228
msgid "Skip empty repack list"
msgstr "Пропустить пустой список переупаковок"
msgid "Empty repack list was skipped"
msgstr "Пропущен пустой список переупаковки"

#: ../bin/epm-repack:239
msgid "Adapted packages:"
Expand Down Expand Up @@ -2245,8 +2245,8 @@ msgstr ""
"пакетов."

#: ../bin/epm-Install:29
msgid "Install: Skip empty install list."
msgstr "Установка: пропустить пустой список установки."
msgid "Install: Empty install list was skipped"
msgstr "Установка: пропущен пустой список установки."

#: ../bin/epm-query_package:30
msgid ""
Expand Down

0 comments on commit 4bbd1a0

Please sign in to comment.