tazpkg diff tazpkg @ rev 744
Store sidebar settings in the session cookies (browser sets, changes, and sends them automatically); use "<button>" tag instead of "<a>" and "<input type='button'>" to show buttons (it allows to translate button captions, and provides uniform look of buttons); "list" and "tag" commands shows short description about what is really listed; "tag" respects repo; "blocked" shows blocked packages; small style change; encode COPYING in UTF-8.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 09 17:05:12 2015 +0200 (2015-01-09) |
parents | 21e01cc4fa1f |
children | 1d6e23a2782f |
line diff
1.1 --- a/tazpkg Mon Dec 29 13:45:57 2014 -0500 1.2 +++ b/tazpkg Fri Jan 09 17:05:12 2015 +0200 1.3 @@ -2280,13 +2280,13 @@ 1.4 esac 1.5 done 1.6 time=$(date +%s) 1.7 - installed_sum=$PKGS_DB/installed.$SUM 1.8 + 1.9 look_for_priority 1.10 for repo in $priority; do 1.11 pkg_list=$repo/packages.list 1.12 mtime=$(find $pkg_list -mtime +7) 1.13 if [ "$mtime" ]; then 1.14 - if [ "$repo" = "$PKGS_DB" ]; then 1.15 + if [ "$repo" == "$PKGS_DB" ]; then 1.16 repo_name=main 1.17 else 1.18 repo_name="${repo##*/}" 1.19 @@ -2295,10 +2295,14 @@ 1.20 tazpkg recharge $repo_name 1.21 fi 1.22 done 1.23 + 1.24 emsg "<n>$(_ 'Package')<i 28> $(_ 'Version')<i 48> $(_ 'Status')<->" 1.25 + 1.26 cd $INSTALLED 1.27 newline > $UP_LIST 1.28 blocked_count=0 1.29 + installed_sum=$PKGS_DB/installed.$SUM 1.30 + 1.31 for pkg in *; do 1.32 [ ! -d $pkg ] && continue 1.33 unset VERSION EXTRAVERSION 1.34 @@ -2340,7 +2344,7 @@ 1.35 upnb=$(wc -l < $UP_LIST) 1.36 pkgs=$(ls | wc -l) 1.37 time=$(($(date +%s) - $time)) 1.38 - if [ "$upnb" = 0 ]; then 1.39 + if [ "$upnb" == 0 ]; then 1.40 install="n" 1.41 _ 'System is up-to-date...' 1.42 fi 1.43 @@ -2352,7 +2356,8 @@ 1.44 1.45 if [ "$upnb" != 0 ]; then 1.46 blocked="$(_p \ 1.47 - '%s blocked' '%s blocked' $blocked_count \ 1.48 + '%s blocked' \ 1.49 + '%s blocked' $blocked_count \ 1.50 $blocked_count)" 1.51 1.52 boldify "$(_p \