blob: 2bace192eb1d5f48c4acbf7e9a2466ccfedeb8bf (
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
|
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
|