cookutils rev 736
cook: add md5sum to packages.info
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 12 17:42:06 2015 +0300 (2015-05-12) |
parents | d2668c48792f |
children | 377cbac341c1 |
files | cook |
line diff
1.1 --- a/cook Mon May 11 04:59:01 2015 +0300 1.2 +++ b/cook Tue May 12 17:42:06 2015 +0300 1.3 @@ -1495,12 +1495,13 @@ 1.4 1.5 EOT 1.6 1.7 - # packages.info combines two previous files 1.8 - # and will substitute them both 1.9 + # packages.info combines TazPkg separate files 1.10 + # and will substitute them all 1.11 SIZES=$(echo $PACKED_SIZE $UNPACKED_SIZE | sed 's|\.0||g') 1.12 DEPENDS=$(echo $DEPENDS) # remove newlines from some receipts 1.13 + MD5="$(fgrep " $PACKAGE-$VERSION$EXTRAVERSION.tazpkg" $PKGS/packages.md5 | awk '{print $1}')" 1.14 cat >> $PKGS/packages.info <<EOT 1.15 -$PACKAGE $VERSION$EXTRAVERSION $CATEGORY $SHORT_DESC $WEB_SITE $TAGS $SIZES $DEPENDS 1.16 +$PACKAGE $VERSION$EXTRAVERSION $CATEGORY $SHORT_DESC $WEB_SITE $TAGS $SIZES $DEPENDS $MD5 1.17 EOT 1.18 1.19 # packages.equiv is used by tazpkg install to check depends.