summaryrefslogtreecommitdiffstats
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 21:19:21 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 21:19:21 +0100
commit83093650bda19395e5611c498752c5f2647157f8 (patch)
treeab29413e8a88b6c2072be72c9569fde5ff795c69 /cron-jobs/sourceballs
parent3c8878d337d59f46d37446ddde2b40af69d36330 (diff)
downloaddbscripts-83093650bda19395e5611c498752c5f2647157f8.tar.gz
dbscripts-83093650bda19395e5611c498752c5f2647157f8.tar.xz
Fix pkgname parsing for files without ARCH
Split the srcpkg parsing into two separate steps, one to swap the extensions, and another to remove the architecture Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index b709d14..07bc7aa 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -59,7 +59,8 @@ for repo in $repos; do
for pkg in *$PKGEXT; do
pkgname=$(getpkgname $pkg)
srcpath="$srcbase/"
- srcpkg="${pkg//-$arch$PKGEXT/$SRCEXT}"
+ srcpkg="${pkg//$PKGEXT/$SRCEXT}"
+ srcpkg="${srcpkg//-$arch/}"
#Don't do anything for package in this 'blacklist'
if grep $pkgname "$dirname/sourceballs.skip" >/dev/null 2>&1; then