From 3ce5ea77d1ec3760e4961b63def94e6f5bb73d24 Mon Sep 17 00:00:00 2001 From: Ted Trask 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