# HG changeset patch # User Christophe Lincoln # Date 1392546158 -3600 # Node ID b0fe4db661238045ee915729843c312975b22cf3 # Parent f6000188006244bc509b246237a3b12947bdc7d6 up: fix installed and blocked pkgs count diff -r f60001880062 -r b0fe4db66123 tazpkg --- a/tazpkg Sun Jan 05 17:56:40 2014 +0100 +++ b/tazpkg Sun Feb 16 11:22:38 2014 +0100 @@ -2356,8 +2356,7 @@ help-up) # Options available for the command: up newline; usage_up; newline - exit 1 - ;; + exit 1 ;; up|upgrade) # # This is the new way to upgrade packages making 'upgrade' and @@ -2442,7 +2441,7 @@ gettext "System is up-to-date..."; echo newline fi - num=$(emsg "$new_pkgs") + num=$(emsg "$pkgs") footer "$(eval_ngettext \ '$num installed package scanned in ${time}s' \ '$num installed packages scanned in ${time}s' $pkgs)" @@ -2450,6 +2449,8 @@ if [ "$blocked_count" -gt 0 ]; then num=$blocked_count blocked=$(eval_ngettext '$num blocked' '$num blocked' $num) + else + blocked="$(gettext '0 blocked')" fi num=$upnb boldify "$(eval_ngettext \