diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-10-07 14:26:23 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-27 15:46:05 +0200 |
commit | 8b77df7580243360431cd5313841556dfa51e94e (patch) | |
tree | 5fa727c7bebc9d3601ed55d9dc8555450fcc014c /test/lib/common.inc | |
parent | 1a57633f1d8e15f4b0ca48f2acacf6b67f74b573 (diff) | |
download | dbscripts-8b77df7580243360431cd5313841556dfa51e94e.tar.gz dbscripts-8b77df7580243360431cd5313841556dfa51e94e.tar.xz |
make tests.d/db-add work
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test/lib/common.inc')
-rw-r--r-- | test/lib/common.inc | 14 |
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[@]})) |