tazpkg rev 207
Add package md5 in log
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 23 12:48:57 2008 +0000 (2008-11-23) |
parents | 29a82d933b02 |
children | bf7c723472ba |
files | tazpkg tazpkgbox |
line diff
1.1 --- a/tazpkg Sat Nov 22 17:50:50 2008 +0000 1.2 +++ b/tazpkg Sun Nov 23 12:48:57 2008 +0000 1.3 @@ -267,10 +267,13 @@ 1.4 # Log this activity 1.5 log() 1.6 { 1.7 + local extra 1.8 + [ "$1" = "Installed" ] && \ 1.9 + extra=" - $(grep $PACKAGE-$VERSION $LOCALSTATE/installed.md5 | awk '{ print $1 }')" 1.10 [ -e $LOG ] || touch $LOG 1.11 DATE=`date +'%F %T'` 1.12 [ -w $LOG ] && 1.13 - echo "$DATE - $1 - $PACKAGE ($VERSION$EXTRAVERSION)" >> $LOG 1.14 + echo "$DATE - $1 - $PACKAGE ($VERSION$EXTRAVERSION)$extra" >> $LOG 1.15 } 1.16 1.17 # Download a file from this mirror
2.1 --- a/tazpkgbox Sat Nov 22 17:50:50 2008 +0000 2.2 +++ b/tazpkgbox Sun Nov 23 12:48:57 2008 +0000 2.3 @@ -212,6 +212,9 @@ 2.4 <input file icon="system-software-update"></input> 2.5 <action>xterm -T "Package upgrade" -geometry 80x16+120+120 -e "tazpkg upgrade; sleep 2" 2>/dev/null</action> 2.6 <action>refresh:PKG</action> 2.7 + <action>refresh:DEV</action> 2.8 + <action>refresh:GET</action> 2.9 + <action>refresh:GETIT</action> 2.10 <action>refresh:PKG_STATS</action> 2.11 <action>refresh:CACHE_STATS</action> 2.12 </button> 2.13 @@ -517,7 +520,7 @@ 2.14 <button> 2.15 <label>Show journal</label> 2.16 <input file icon="find"></input> 2.17 - <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -T "Tazpkg journal (q to quit)" -geometry 80x25+120+120 -e "ls -l /var/log/tazpkg.log | cat - /var/log/tazpkg.log | less"</action> 2.18 + <action>xterm -fa MiscFixed -fs 11 -bg gray93 -fg black -T "$(ls -l /var/log/tazpkg.log | while read mod links user grep remain ; do echo $remain ; done) (q to quit)" -geometry 80x25+120+120 -e "cat /var/log/tazpkg.log | less"</action> 2.19 </button> 2.20 </hbox> 2.21 </frame>