wok-next view tazpkg/stuff/patches/r954.diff @ rev 20345

Up/patch tazpkg
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 18 14:07:35 2017 +0200 (2017-11-18)
parents
children
line source
2 # HG changeset patch
3 # User Richard Dunbar <mojo@slitaz.org>
4 # Date 1509739839 14400
5 # Node ID ecb60a87e3e840843ad7698cee37380f374819ec
6 # Parent 40c8ad3478fdb0436487ff71966099a7546c7492
7 modules/install: PKG_SUM restores update new build detection
9 diff -r 40c8ad3478fd -r ecb60a87e3e8 modules/install
10 --- a/modules/install Mon Oct 09 17:16:43 2017 +0100
11 +++ b/modules/install Fri Nov 03 16:10:39 2017 -0400
12 @@ -620,7 +620,8 @@
14 # Remove newlines from some receipts
15 DEPENDS=$(echo $DEPENDS)
16 -
17 + PKG_SUM="$(fgrep " $PACKAGE-$VERSION$EXTRAVERSION.tazpkg" "$PKGS_DB/installed.$SUM" | cut -d' ' -f1)"
18 +
19 # Calculate "release checksum": md5sum of file containing md5sums of:
20 # a) all files, b) receipt, and c) description.txt.
21 rsumf=$(mktemp)
22 @@ -637,7 +638,7 @@
23 sed -i "/^$PACKAGE /d" "$ii"
25 cat >> "$ii" <<EOT
26 -$PACKAGE $VERSION$EXTRAVERSION $CATEGORY $SHORT_DESC $WEB_SITE $TAGS $SIZES $DEPENDS $RSUM
27 +$PACKAGE $VERSION$EXTRAVERSION $CATEGORY $SHORT_DESC $WEB_SITE $TAGS $SIZES $DEPENDS $PKG_SUM
28 EOT
30 TEMP_FILE="$(mktemp)"