tazpkg rev 421 4.2.4
Fix: use in get_cache_dir (thanks godane)
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Tue Feb 01 02:40:31 2011 +0100 (2011-02-01) |
parents | c69340c2b441 |
children | 43af5a038986 |
files | tazpkg |
line diff
1.1 --- a/tazpkg Tue Feb 01 02:29:18 2011 +0100 1.2 +++ b/tazpkg Tue Feb 01 02:40:31 2011 +0100 1.3 @@ -236,7 +236,7 @@ 1.4 get_cache_dir() 1.5 { 1.6 echo $rep > $tmp/rep 1.7 - if [ "$rep" = /var/lib/tazpkg ]; then 1.8 + if [ "$rep" = "$LOCALSTATE" ]; then 1.9 CACHE_DIR="$SAVE_CACHE_DIR/$SLITAZ_VERSION/packages" 1.10 elif [ "${rep%-incoming}" = "$rep" ]; then 1.11 CACHE_DIR="$SAVE_CACHE_DIR/${rep##*/}/packages"