Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=5731ea7c9c466dc328caa3edec0e1ffbbd2a7400

commit 5731ea7c9c466dc328caa3edec0e1ffbbd2a7400
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Mon Sep 3 15:18:55 2007 +0200

fblint: allow missing md5/sha1sums and signatures if there are no remote sources

diff --git a/fblint b/fblint
index c301569..238d006 100755
--- a/fblint
+++ b/fblint
@@ -132,7 +132,14 @@ check "valid first group" "! echo $groups |grep -q -- - || 
echo $groups|grep -q
check "valid options()" "[ -z \"$(echo [EMAIL PROTECTED]|tr ' ' '\n' |grep -v 
'\(nodocs\|nostrip\|force\|nobuild\|nofakeroot\|scriptlet\|stick\|devel\)')\" ]"
check "archs" "[ ! -z \"$archs\" ]"
check "up2date" "[ ! -z \"`echo $up2date|sed 's/\$(/\\\\\$(/g'`\" ]"
-check "md5sums/sha1sums/signatures" "[ [EMAIL PROTECTED] -gt 0 -o [EMAIL 
PROTECTED] -gt 0 -o [EMAIL PROTECTED] -gt 0 ]"
+_fblint_have_remote_source=n
+for i in [EMAIL PROTECTED]
+do
+       echo $i|grep -q :// && _fblint_have_remote_source=y
+done
+if [ "$_fblint_have_remote_source" = "y" ]; then
+       check "md5sums/sha1sums/signatures" "[ [EMAIL PROTECTED] -gt 0 -o 
[EMAIL PROTECTED] -gt 0 -o [EMAIL PROTECTED] -gt 0 ]"
+fi
if [ [EMAIL PROTECTED] -gt 0 ]; then
check "right number of md5sums" "[ [EMAIL PROTECTED] -eq [EMAIL PROTECTED] ]"
fi
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to