pck-update: package.update(): better notification message
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
parent
ae734fb182
commit
4f44b8b825
@ -1172,11 +1172,22 @@ echo -n "\"${define_list_value[$i]}\" "; done)]"
|
||||
notify.debug "\
|
||||
define_list_rpm = \"$define_list_rpm\""
|
||||
|
||||
if [ "$pck_newver" ]; then
|
||||
notify.note $"updating package ${NOTE}${pck_name##*/}${NORM} \
|
||||
if [[ "$pck_name" =~ ^[a-zA-Z0-9-]+$ ]]; then
|
||||
if [ "$pck_newver" ]; then
|
||||
notify.note $"updating package ${NOTE}${pck_name##*/}${NORM} \
|
||||
to version ${NOTE}${pck_newver}${NORM}""..."
|
||||
else
|
||||
notify.note $"updating package"" ${NOTE}${pck_name##*/}${NORM}..."
|
||||
fi
|
||||
else
|
||||
notify.note $"updating package"" ${NOTE}${pck_name##*/}${NORM}..."
|
||||
# not a real package but a regexp
|
||||
if [ "$pck_newver" ]; then
|
||||
notify.note $"multiple package update (regexp: \
|
||||
${NOTE}$pck_name${NORM}) to version ${NOTE}${pck_newver}${NORM}""..."
|
||||
else
|
||||
notify.note $"multiple package update (regexp: \
|
||||
${NOTE}$pck_name${NORM})""..."
|
||||
fi
|
||||
fi
|
||||
|
||||
for step in ${steps[*]}; do
|
||||
|
@ -333,6 +333,12 @@ msgstr "aggiornamento del pacchetto ${NOTE}${pck_name##*/}${NORM} alla versione
|
||||
msgid "updating package"
|
||||
msgstr "aggiornamento del pacchetto"
|
||||
|
||||
msgid "multiple package update (regexp: ${NOTE}$pck_name${NORM}) to version ${NOTE}${pck_newver}${NORM}"
|
||||
msgstr "aggiornamento multiplo di pacchetti (${NOTE}$pck_name${NORM}) alla versione ${NOTE}${pck_newver}${NORM}"
|
||||
|
||||
msgid "multiple package update (regexp: ${NOTE}$pck_name${NORM})"
|
||||
msgstr "aggiornamento multiplo di pacchetti (${NOTE}$pck_name${NORM})"
|
||||
|
||||
msgid "too many packages found"
|
||||
msgstr "trovati troppi pacchetti candidati"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user