[Frugalware-git] pacman-tools: allow empty depends if rodepends is set

Miklos Vajna vmiklos at frugalware.org
Tue Oct 23 14:22:33 CEST 2007


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

commit 96212aac3264f6f02bc62d72c8386d62dbec0726
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Tue Oct 23 14:21:40 2007 +0200

allow empty depends if rodepends is set

diff --git a/fblint b/fblint
index 50b1ea7..02e0bb0 100755
--- a/fblint
+++ b/fblint
@@ -121,7 +121,7 @@ check "pkgrel" "[ ! -z "$pkgrel" ]"
check "hyphen-less pkgrel" "[ ! `echo $pkgrel | grep '-'` ]"
check "pkgdesc" "[ ! -z \"$pkgdesc\" ]"
check "url" "[ ! -z \"$url\" ]"
-check "depends" "[ ! -z \"$depends\" ] || set|grep -q ^depends="
+check "depends" "[ ! -z \"$depends\" -o ! -z \"$rodepends\" ] || set|grep -q ^depends="
check "groups" "[ ! -z \"$groups\" ]"
check "valid first group" "! echo $groups |grep -q -- - || echo $groups|grep -q -- -extra$"
check "valid options()" "[ -z \"$(echo ${options[@]}|tr ' ' '\n' |grep -v '\(nodocs\|nostrip\|force\|nobuild\|nofakeroot\|scriptlet\|stick\)')\" ]"


More information about the Frugalware-git mailing list