summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 12:19:21 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2009-02-13 12:19:21 -0800
commit83093650bda19395e5611c498752c5f2647157f8 (patch)
treeab29413e8a88b6c2072be72c9569fde5ff795c69
parent3c8878d337d59f46d37446ddde2b40af69d36330 (diff)
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>
-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