summaryrefslogtreecommitdiffstats
path: root/misc-scripts/make-sourceball
diff options
context:
space:
mode:
authorEric Bélanger <snowmaniscool@gmail.com>2010-06-28 05:40:38 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-06-28 07:55:02 +0200
commite2cc14311b1bfad0c30cef395a1a033cdef030c0 (patch)
tree96e00a57b618a5cf00e621e7ebe8f332f135cd34 /misc-scripts/make-sourceball
parentf6004585ef7ceff8e0119363f297104ac7900e09 (diff)
downloaddbscripts-e2cc14311b1bfad0c30cef395a1a033cdef030c0.tar.gz
dbscripts-e2cc14311b1bfad0c30cef395a1a033cdef030c0.tar.xz
sourceballs: Added community and community-testing support
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'misc-scripts/make-sourceball')
-rwxr-xr-xmisc-scripts/make-sourceball14
1 files changed, 11 insertions, 3 deletions
diff --git a/misc-scripts/make-sourceball b/misc-scripts/make-sourceball
index 610d7f1..37141c7 100755
--- a/misc-scripts/make-sourceball
+++ b/misc-scripts/make-sourceball
@@ -81,8 +81,16 @@ set_umask
/bin/mkdir -p "$logpath"
cd "$WORKDIR"
-if /usr/bin/svn export -q "$SVNREPO/$packagename" $packagename; then
- create_srcpackage "$packagename/repos/$reponame-$_arch"
+if [[ "$reponame" = "community" || "$reponame" = "community-testing" ]]; then
+ if /usr/bin/svn export -q "$SVNREPOCOMMUNITY/$packagename" $packagename; then
+ create_srcpackage "$packagename/repos/$reponame-$_arch"
+ else
+ die "\tPackage '$packagename' does not exist in repo '$reponame-$_arch'"
+ fi
else
- die "\tPackage '$packagename' does not exist in repo '$reponame-$_arch'"
+ if /usr/bin/svn export -q "$SVNREPO/$packagename" $packagename; then
+ create_srcpackage "$packagename/repos/$reponame-$_arch"
+ else
+ die "\tPackage '$packagename' does not exist in repo '$reponame-$_arch'"
+ fi
fi