From 2de2859cc0fd7f9db26630dffec25fccb88f3434 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 23 Feb 2009 13:50:34 -0800 Subject: Ensure grep matches only full pkgnames Signed-off-by: Aaron Griffin --- cron-jobs/sourceballs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cron-jobs/sourceballs') diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index d36da4b..b4085f2 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -64,14 +64,14 @@ for repo in $repos; do srcpkg="${srcpkg//-$arch/}" #Don't do anything for package in this 'blacklist' - if grep $pkgname "$dirname/sourceballs.skip" >/dev/null 2>&1; then + if grep "^$pkgname\$" "$dirname/sourceballs.skip" >/dev/null 2>&1; then continue fi #Use this file to 'whitelist' or force building some sourceballs, # skipping the license check force="" - if grep $pkgname "$dirname/sourceballs.force" >/dev/null 2>&1; then + if grep "^$pkgname\$" "$dirname/sourceballs.force" >/dev/null 2>&1; then force="-f" fi -- cgit v1.2.3-24-g4f1b