aboutsummaryrefslogtreecommitdiffstats
path: root/main/abuild/0001-Delete-downloaded-source-if-fails-md5sum.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/abuild/0001-Delete-downloaded-source-if-fails-md5sum.patch')
-rw-r--r--main/abuild/0001-Delete-downloaded-source-if-fails-md5sum.patch28
1 files changed, 28 insertions, 0 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 0000000000..2bace192eb
--- /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
+