summaryrefslogtreecommitdiffstats
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2012-03-07 14:56:58 +0100
committerPierre Schmitz <pierre@archlinux.de>2012-03-07 14:56:58 +0100
commit6c29c8e05486934cb52bfba9baef02496d26199a (patch)
treec58776d2147a5b8e3e0f5a7aeffdd05d6803d186 /cron-jobs/sourceballs
parenta14cb544ed9edf6cc07f8cdd5bf4d6c5f27a0492 (diff)
downloaddbscripts-6c29c8e05486934cb52bfba9baef02496d26199a.tar.gz
dbscripts-6c29c8e05486934cb52bfba9baef02496d26199a.tar.xz
sourceballs: If ALLOWED_LICENSES is empty create source packages for every package
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 4c4cbfd..a24676d 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -64,7 +64,7 @@ for repo in ${PKGREPOS[@]}; do
continue
fi
# Check if the license or .force file does not enforce creating a source package
- if ! (chk_license ${pkglicense[@]} || grep -Fqx "${pkgbase}" "${dirname}/sourceballs.force"); then
+ if ! ([[ -z ${ALLOWED_LICENSES[@]} ]] || chk_license ${pkglicense[@]} || grep -Fqx "${pkgbase}" "${dirname}/sourceballs.force"); then
continue
fi
# Store the expected file name of the source package