From ee309578f78b83e320bca456e6d694b372e804e8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 14 Feb 2009 05:34:24 +0100 Subject: [PATCH] binpkg-genindex.sh: add a filename-size obj. --HG-- extra : convert_revision : b41d98800583d7d1681a1181a1fe67976e3975c8 --- shutils/binpkg-genindex.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shutils/binpkg-genindex.sh b/shutils/binpkg-genindex.sh index 15ff0fdc27f..0d509053320 100644 --- a/shutils/binpkg-genindex.sh +++ b/shutils/binpkg-genindex.sh @@ -143,6 +143,7 @@ write_repo_pkgindex_dict() local first_dict= local tmpdictf= local binpkg="$XBPS_PACKAGESDIR/$binpkgf" + local getsize=$(du $binpkg|awk '{print $1}') [ -z "$pkgf" -o -z "$indexf" -o -z "$binpkgf" ] && return 1 @@ -159,6 +160,8 @@ write_repo_pkgindex_dict() echo "filename-sha256" >> $tmpdictf echo "$(xbps-digest $binpkg)" \ >> $tmpdictf + echo "filename-size" >> $tmpdictf + echo "$getsize" >> $tmpdictf continue # Continue until found. elif [ -z "$first_dict" ]; then