summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-23 22:50:34 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-23 22:50:34 +0100
commit2de2859cc0fd7f9db26630dffec25fccb88f3434 (patch)
tree3202e5f4291fa9279a413d0994b918d138e7e04b
parent044a26cf5dede31271dbeb8f8201f1418718e62c (diff)
downloaddbscripts-2de2859cc0fd7f9db26630dffec25fccb88f3434.tar.gz
dbscripts-2de2859cc0fd7f9db26630dffec25fccb88f3434.tar.xz
Ensure grep matches only full pkgnames
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-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