summaryrefslogtreecommitdiffstats
path: root/test/lib/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/common.inc')
-rw-r--r--test/lib/common.inc14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/lib/common.inc b/test/lib/common.inc
index 4f5a5b4..47b3f58 100644
--- a/test/lib/common.inc
+++ b/test/lib/common.inc
@@ -128,6 +128,17 @@ tearDown() {
echo
}
+archreleasePackage() {
+ local repo=$1
+ local pkgbase=$2
+ local arch=$3
+ pushd "${TMP}/svn-packages-copy"/${pkgbase}/trunk/ >/dev/null
+ # TODO: pull archrelease and commitpkg in dbscripts so this can be done cleaner?
+ ~/git/arch/devtools/archrelease ${repo}-${arch} >/dev/null 2>&1
+
+ popd >/dev/null
+}
+
releasePackage() {
local repo=$1
local pkgbase=$2
@@ -137,9 +148,8 @@ releasePackage() {
local pkgver
local pkgname
+ archreleasePackage "${repo}" "${pkgbase}" "${arch}"
pushd "${TMP}/svn-packages-copy"/${pkgbase}/trunk/ >/dev/null
- ~/git/arch/devtools/archrelease ${repo}-${arch} >/dev/null 2>&1
- # TODO: pull archrelease and commitpkg in dbscripts so this can be done cleaner?
pkgver=$(. PKGBUILD; echo $(get_full_version ${epoch:-0} ${pkgver} ${pkgrel}))
pkgname=($(. PKGBUILD; echo ${pkgname[@]}))