summaryrefslogtreecommitdiff
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-23 13:50:34 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-23 13:50:34 -0800
commit2de2859cc0fd7f9db26630dffec25fccb88f3434 (patch)
tree3202e5f4291fa9279a413d0994b918d138e7e04b /cron-jobs/sourceballs
parent044a26cf5dede31271dbeb8f8201f1418718e62c (diff)
Ensure grep matches only full pkgnames
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs4
1 files changed, 2 insertions, 2 deletions
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