tazpkg diff modules/reconfigure @ rev 898
Module 'get': fix temp dir; module 'find-depends': faster search, add debug messages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Dec 29 22:00:47 2015 +0200 (2015-12-29) |
parents | b6daeaa95431 |
children | 50421cb50644 |
line diff
1.1 --- a/modules/reconfigure Tue Oct 20 10:24:52 2015 +0300 1.2 +++ b/modules/reconfigure Tue Dec 29 22:00:47 2015 +0200 1.3 @@ -13,6 +13,18 @@ 1.4 1.5 1.6 1.7 +# Log TazPkg activity 1.8 + 1.9 +log_pkg() { 1.10 + local extra 1.11 + [ -e "$LOG" ] || touch $LOG 1.12 + [ -w "$LOG" ] && 1.13 + echo "$(date +'%F %T') - $1 - $PACKAGE ($VERSION$EXTRAVERSION)$extra" >> $LOG 1.14 +} 1.15 + 1.16 + 1.17 + 1.18 + 1.19 PACKAGE="$1" 1.20 1.21 # Receipt function caller 1.22 @@ -29,7 +41,7 @@ 1.23 status 1.24 rm "$tmp" 1.25 # Log this activity 1.26 - tazpkg call log_pkg Reconfigured 1.27 + log_pkg Reconfigured 1.28 else 1.29 newline 1.30 _ 'Nothing to do for package "%s".' "$PACKAGE"