slitaz-forge rev 644

search.sh: clouds cache (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 12 12:01:51 2017 +0100 (2017-02-12)
parents 8edcbdb15273
children 14bba9bfd7e5
files pkgs/search.sh
line diff
     1.1 --- a/pkgs/search.sh	Sun Feb 12 09:11:24 2017 +0000
     1.2 +++ b/pkgs/search.sh	Sun Feb 12 12:01:51 2017 +0100
     1.3 @@ -891,7 +891,8 @@
     1.4  
     1.5  display_cloud() {
     1.6  	arg=$1
     1.7 -	[ /tmp/cloud-$arg -nt $pkglist ] && cat /tmp/cloud-$arg ||
     1.8 +	[ /tmp/cloud-$arg-$SLITAZ_VERSION -nt $pkglist ] &&
     1.9 +	cat /tmp/cloud-$arg-$SLITAZ_VERSION ||
    1.10  	find $WOK/ -maxdepth 2 -name receipt -exec sed \
    1.11  	 "/^$1=/!d;s/.*['\"<]\\(..*\\)[>\"'].*/\\1/" {} \; | awk '
    1.12  {
    1.13 @@ -932,7 +933,7 @@
    1.14  			TAGS)       _p '%s tag'          '%s tags'          "$count" "$count";;
    1.15  		esac
    1.16  		echo '</p>'
    1.17 -	} | tee /tmp/cloud-$arg
    1.18 +	} | tee /tmp/cloud-$arg-$SLITAZ_VERSION
    1.19  }
    1.20  
    1.21