diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-11-21 13:59:30 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-11-21 13:59:30 +0100 |
commit | cf642f924a4404f85926619324e59b3c878c1284 (patch) | |
tree | 4a1989ab4b2dbff41071de9668556c73b4085fe0 /misc-scripts | |
parent | 30a128a864bdbfc294b6ba6a49c9264570bb3c58 (diff) | |
download | dbscripts-cf642f924a4404f85926619324e59b3c878c1284.tar.gz dbscripts-cf642f924a4404f85926619324e59b3c878c1284.tar.xz |
sourceballs: Support any packages
Diffstat (limited to 'misc-scripts')
-rwxr-xr-x | misc-scripts/make-sourceball | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball index fccc4b5..ce87b31 100755 --- a/misc-scripts/make-sourceball +++ b/misc-scripts/make-sourceball @@ -62,8 +62,6 @@ create_srcpackage() { popd >/dev/null return 0 - else - error "PKGBUILD not found in $1" fi } @@ -73,7 +71,14 @@ cd "$WORKDIR" failed=0 if /usr/bin/svn export -q "$SVNREPO/$packagename" $packagename; then - create_srcpackage "$packagename/repos/$reponame-$arch" || failed=1 + if [ -f "$packagename/repos/$reponame-$arch/PKGBUILD" ]; then + create_srcpackage "$packagename/repos/$reponame-$arch" || failed=1 + elif [ -f "$packagename/repos/$reponame-any/PKGBUILD" ]; then + create_srcpackage "$packagename/repos/$reponame-any" || failed=1 + else + error "PKGBUILD for '$packagename' does not exist in repo '$reponame-$arch' or '$reponame-any'" + failed=1 + fi else error "Package '$packagename' does not exist in repo '$reponame-$arch'" failed=1 |