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

commit 84aed35097d04538f4975a89d04392921f0afea8
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Tue Nov 24 17:42:36 2009 +0100

fblint: use codename from /etc/frugalware-release

diff --git a/fblint b/fblint
index c11f394..03d259a 100755
--- a/fblint
+++ b/fblint
@@ -185,8 +185,9 @@ if [ ! -z "$subpkgs" ]; then
check "right number of suboptions" "[ \"${#suboptio...@]}\" = 0 ] || [ 
\"${#suboptio...@]}\" = \"${#subpk...@]}\" ]"
fi

-if [ "`get_root`" = "stable" -o "`get_root`" = "anacreon" ]; then
-       check "unchanged pkgrel" "echo $pkgrel | grep -q 'anacreon'"
+codename=$(sed 's/.*(\(.*\))/\1/' /etc/frugalware-release|tr '[A-Z]' '[a-z]')
+if [ "`get_root`" = "stable" -o "`get_root`" = "$codename" ]; then
+       check "unchanged pkgrel" "echo $pkgrel | grep -q '$codename'"
fi
check "trailing whitespace" "! grep -q ' $' $_fblint_fb"
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to