diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-02-11 21:11:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-02-11 21:11:27 +0000 |
commit | f6e1791e9c37fb946bcfd6b685b12f5cda5ef7bf (patch) | |
tree | 601f28de48e6ffad7e42bfa237d5397295f33a97 /main/abuild | |
parent | 560f656e21650aee79025b44f879ab893e23681b (diff) | |
download | aports-f6e1791e9c37fb946bcfd6b685b12f5cda5ef7bf.tar.bz2 aports-f6e1791e9c37fb946bcfd6b685b12f5cda5ef7bf.tar.xz |
main/abuild: Patch to delete sources with bad md5sum
Diffstat (limited to 'main/abuild')
-rw-r--r-- | main/abuild/0001-Delete-downloaded-source-if-fails-md5sum.patch | 28 | ||||
-rw-r--r-- | main/abuild/APKBUILD | 6 |
2 files changed, 32 insertions, 2 deletions
diff --git a/main/abuild/0001-Delete-downloaded-source-if-fails-md5sum.patch b/main/abuild/0001-Delete-downloaded-source-if-fails-md5sum.patch new file mode 100644 index 000000000..2bace192e --- /dev/null +++ b/main/abuild/0001-Delete-downloaded-source-if-fails-md5sum.patch @@ -0,0 +1,28 @@ +From 3ce5ea77d1ec3760e4961b63def94e6f5bb73d24 Mon Sep 17 00:00:00 2001 +From: Ted Trask <ttrask01@yahoo.com> +Date: Fri, 11 Feb 2011 15:09:44 +0000 +Subject: [PATCH 1/2] Delete downloaded source if fails md5sum + +--- + abuild.in | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/abuild.in b/abuild.in +index 551d759..22f50fd 100755 +--- a/abuild.in ++++ b/abuild.in +@@ -167,7 +167,10 @@ md5check() { + fi + fetch || return 1 + msg "Checking md5sums..." +- cd "$srcdir" && echo "$md5sums" | md5sum -c ++ cd "$srcdir" ++ if ! echo "$md5sums" | md5sum -c; then ++ cleancache && return 1 ++ fi + } + + # verify upstream sources +-- +1.6.6.1 + diff --git a/main/abuild/APKBUILD b/main/abuild/APKBUILD index ec659bbfd..598bd92a2 100644 --- a/main/abuild/APKBUILD +++ b/main/abuild/APKBUILD @@ -2,11 +2,12 @@ pkgdesc="Script to build Alpine Packages" pkgname=abuild pkgver=2.7.2 -pkgrel=1 +pkgrel=2 url=http://git.alpinelinux.org/cgit/abuild/ source="http://git.alpinelinux.org/cgit/abuild.git/snapshot/abuild-$pkgver.tar.bz2 0001-abuild-only-warn-when-we-think-there-should-have-bee.patch enhanced-subpkgdesc.patch + 0001-Delete-downloaded-source-if-fails-md5sum.patch " depends="fakeroot file sudo pax-utils openssl apk-tools>=2.0.7-r1" makedepends="openssl-dev pkgconfig" @@ -41,4 +42,5 @@ package() { md5sums="6b621f93e51faf19dc1edffbfaba67d1 abuild-2.7.2.tar.bz2 865f1e53e76cb77abb356cd6bb5b9588 0001-abuild-only-warn-when-we-think-there-should-have-bee.patch -7fbc7dd27edae8cc5b2bc0a499aac8b6 enhanced-subpkgdesc.patch" +7fbc7dd27edae8cc5b2bc0a499aac8b6 enhanced-subpkgdesc.patch +29b02ad1d49939e4fe7ad6b022188992 0001-Delete-downloaded-source-if-fails-md5sum.patch" |