cookutils rev 1058
lighttpd/index.cgi: follow changed versions in "[files]"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 18 14:12:41 2018 +0300 (2018-05-18) |
parents | 371cc12e0b08 |
children | 815349e0020b |
files | lighttpd/index.cgi |
line diff
1.1 --- a/lighttpd/index.cgi Fri May 18 11:42:03 2018 +0300 1.2 +++ b/lighttpd/index.cgi Fri May 18 14:12:41 2018 +0300 1.3 @@ -1463,7 +1463,9 @@ 1.4 # ------------------------------------------------------ 1.5 packaged=$(mktemp) 1.6 for p in $pkgsofset; do 1.7 - namever="$p-$ver" 1.8 + namever="$(awk -F$'\t' -vp="$p" '{ 1.9 + if ($1==p) {printf("%s-%s\n", $1, $2); exit} 1.10 + }' $PKGS/packages.info)" 1.11 if [ -d "$wok/$p/taz/$p-$ver" ]; then 1.12 indir=$p 1.13 elif [ -d "$wok/$main/taz/$p-$ver" ]; then