diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-02-13 21:19:21 +0100 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-02-13 21:19:21 +0100 |
commit | 83093650bda19395e5611c498752c5f2647157f8 (patch) | |
tree | ab29413e8a88b6c2072be72c9569fde5ff795c69 | |
parent | 3c8878d337d59f46d37446ddde2b40af69d36330 (diff) | |
download | dbscripts-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>
-rwxr-xr-x | cron-jobs/sourceballs | 3 |
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 |