aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-abuild-use-only-sha512sum.patch
blob: 3c670e047ecfd6e8d76db21f9654024987789f4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 0ff2cf73f5070d5dd4f9df11d8d87b594cc0be7b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timo=20Ter=C3=A4s?= <timo.teras@iki.fi>
Date: Thu, 26 Jan 2017 13:57:18 +0200
Subject: [PATCH] abuild: use only sha512sum

use only the strongest hash. this simplifies apkbuilds a bit.
---
 abuild.in | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/abuild.in b/abuild.in
index ecd6fcc..ce42c5a 100644
--- a/abuild.in
+++ b/abuild.in
@@ -1907,16 +1907,6 @@ checksum() {
 		files="$files $(filename_from_uri $s)"
 	done
 
-	# for compatibility/backporting reasons we still add md5sum
-	msg "Updating the md5sums in APKBUILD..."
-	md5sums="$(cd "$srcdir" && md5sum $files)" || die "md5sum failed"
-	echo "md5sums=\"$md5sums\"" >>"$APKBUILD"
-
-	msg "Updating the sha256sums in APKBUILD..."
-	sha256sums="$(cd "$srcdir" && sha256sum $files)" \
-		|| die "sha256sum failed"
-	echo "sha256sums=\"$sha256sums\"" >>"$APKBUILD"
-
 	msg "Updating the sha512sums in APKBUILD..."
 	sha512sums="$(cd "$srcdir" && sha512sum $files)" \
 		|| die "sha512sum failed"
-- 
2.11.0