pck-update: package.update(): better notification message

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-05-04 23:30:40 +02:00
parent ae734fb182
commit 4f44b8b825
2 changed files with 20 additions and 3 deletions

View File

@ -1172,12 +1172,23 @@ echo -n "\"${define_list_value[$i]}\" "; done)]"
notify.debug "\ notify.debug "\
define_list_rpm = \"$define_list_rpm\"" define_list_rpm = \"$define_list_rpm\""
if [[ "$pck_name" =~ ^[a-zA-Z0-9-]+$ ]]; then
if [ "$pck_newver" ]; then if [ "$pck_newver" ]; then
notify.note $"updating package ${NOTE}${pck_name##*/}${NORM} \ notify.note $"updating package ${NOTE}${pck_name##*/}${NORM} \
to version ${NOTE}${pck_newver}${NORM}""..." to version ${NOTE}${pck_newver}${NORM}""..."
else else
notify.note $"updating package"" ${NOTE}${pck_name##*/}${NORM}..." notify.note $"updating package"" ${NOTE}${pck_name##*/}${NORM}..."
fi fi
else
# 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 for step in ${steps[*]}; do
case $step in case $step in

View File

@ -333,6 +333,12 @@ msgstr "aggiornamento del pacchetto ${NOTE}${pck_name##*/}${NORM} alla versione
msgid "updating package" msgid "updating package"
msgstr "aggiornamento del pacchetto" 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" msgid "too many packages found"
msgstr "trovati troppi pacchetti candidati" msgstr "trovati troppi pacchetti candidati"