tazpkg rev 954
modules/install: PKG_SUM restores update new build detection
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Nov 03 16:10:39 2017 -0400 (2017-11-03) |
parents | 40c8ad3478fd |
children | 24c9c0777880 |
files | modules/install |
line diff
1.1 --- a/modules/install Mon Oct 09 17:16:43 2017 +0100 1.2 +++ b/modules/install Fri Nov 03 16:10:39 2017 -0400 1.3 @@ -620,7 +620,8 @@ 1.4 1.5 # Remove newlines from some receipts 1.6 DEPENDS=$(echo $DEPENDS) 1.7 - 1.8 + PKG_SUM="$(fgrep " $PACKAGE-$VERSION$EXTRAVERSION.tazpkg" "$PKGS_DB/installed.$SUM" | cut -d' ' -f1)" 1.9 + 1.10 # Calculate "release checksum": md5sum of file containing md5sums of: 1.11 # a) all files, b) receipt, and c) description.txt. 1.12 rsumf=$(mktemp) 1.13 @@ -637,7 +638,7 @@ 1.14 sed -i "/^$PACKAGE /d" "$ii" 1.15 1.16 cat >> "$ii" <<EOT 1.17 -$PACKAGE $VERSION$EXTRAVERSION $CATEGORY $SHORT_DESC $WEB_SITE $TAGS $SIZES $DEPENDS $RSUM 1.18 +$PACKAGE $VERSION$EXTRAVERSION $CATEGORY $SHORT_DESC $WEB_SITE $TAGS $SIZES $DEPENDS $PKG_SUM 1.19 EOT 1.20 1.21 TEMP_FILE="$(mktemp)"