# HG changeset patch # User Aleksej Bobylev # Date 1526632923 -10800 # Node ID 371cc12e0b0844310a6746f40177818367d7ee1d # Parent 96366a824c1eef6b64d157a4c15fb8d793fcfd20 cook: follow changed version in the "Summary"; lighttpd/index.cgi: follow changed version in the "[download]". diff -r 96366a824c1e -r 371cc12e0b08 cook --- a/cook Thu May 17 23:42:39 2018 +0300 +++ b/cook Fri May 18 11:42:03 2018 +0300 @@ -331,8 +331,11 @@ separator - pkgi=1 for i in $(all_names); do + version=$(awk -F$'\t' -vpkg="$i" '{ + if ($1 == pkg) {print $2; exit} + }' "$PKGS/packages.info") fs=$(du -sh $WOK/$pkg/taz/$i-$VERSION$EXTRAVERSION | awk '{print $1}') - pkgname="$i-$VERSION$EXTRAVERSION$arch.tazpkg" + pkgname="$i-$version$EXTRAVERSION$arch.tazpkg" size=$(ls -lh $PKGS/$pkgname | awk '{print $5}') files=$(wc -l < $WOK/$pkg/taz/$i-$VERSION$EXTRAVERSION/files.list) printf "%2d : %7s : %10s : %5s : %s\n" "$pkgi" "$fs" "$size" "$files" "$pkgname" diff -r 96366a824c1e -r 371cc12e0b08 lighttpd/index.cgi --- a/lighttpd/index.cgi Thu May 17 23:42:39 2018 +0300 +++ b/lighttpd/index.cgi Fri May 18 11:42:03 2018 +0300 @@ -1970,9 +1970,10 @@ if [ -d "$wok/$pkg/taz" ]; then [ "$show" -eq 1 ] || files_header + common_version=$VERSION for i in $(all_names); do - [ -e "$wok/$pkg/taz/$i-$VERSION$EXTRAVERSION/receipt" ] || continue - . $wok/$pkg/taz/$i-$VERSION$EXTRAVERSION/receipt + [ -e "$wok/$pkg/taz/$i-$common_version$EXTRAVERSION/receipt" ] || continue + . $wok/$pkg/taz/$i-$common_version$EXTRAVERSION/receipt for filename in "$PACKAGE-$VERSION$EXTRAVERSION.tazpkg" "$PACKAGE-$VERSION$EXTRAVERSION-$ARCH.tazpkg"; do [ -f "$PKGS/$filename" ] &&