summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 11:12:18 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 11:12:18 -0400
commite8f411803648f64b386dd2970b024b9ba15ba682 (patch)
treeca56d48e18c4801be9ab00bee901a830cc6e9ec9 /test
parentbcaa90a2e6f26191ff4aa9e0279080d1efeec3e7 (diff)
The eval+printf %q thing wasn't worth the hard-to-read code
Diffstat (limited to 'test')
-rw-r--r--test/lib/common.inc6
-rwxr-xr-xtest/test.d/create-filelists.sh2
2 files changed, 4 insertions, 4 deletions
diff --git a/test/lib/common.inc b/test/lib/common.inc
index a241615..1feb1bb 100644
--- a/test/lib/common.inc
+++ b/test/lib/common.inc
@@ -52,8 +52,8 @@ oneTimeSetUp() {
msg 'Building packages...'
for d in "${pkgdir}"/*; do
pushd $d >/dev/null
- eval "pkgname=($(. PKGBUILD; printf '%q ' "${pkgname[@]}"))"
- eval "pkgarch=($(. PKGBUILD; printf '%q ' "${arch[@]}"))"
+ pkgname=($(. PKGBUILD; echo "${pkgname[@]}"))
+ pkgarch=($(. PKGBUILD; echo "${arch[@]}"))
pkgversion=$(. PKGBUILD; get_full_version)
build=true
@@ -170,7 +170,7 @@ releasePackage() {
pushd "${TMP}/svn-packages-copy"/${pkgbase}/trunk/ >/dev/null
xbs release ${repo} ${arch} >/dev/null 2>&1
pkgver=$(. PKGBUILD; get_full_version)
- eval "pkgname=($(. PKGBUILD; printf '%q ' "${pkgname[@]}"))"
+ pkgname=($(. PKGBUILD; echo "${pkgname[@]}"))
popd >/dev/null
cp "${pkgdir}/${pkgbase}"/*-${pkgver}-${arch}${PKGEXT} "${STAGING}"/${repo}/
diff --git a/test/test.d/create-filelists.sh b/test/test.d/create-filelists.sh
index 1126972..b5ec5c8 100755
--- a/test/test.d/create-filelists.sh
+++ b/test/test.d/create-filelists.sh
@@ -62,7 +62,7 @@ testCreateSplitFileLists() {
../db-update
for pkgbase in "${pkgs[@]}"; do
- eval "pkgnames=($(source "${TMP}/svn-packages-copy/${pkgbase}/trunk/PKGBUILD"; printf '%q ' "${pkgname[@]}"))"
+ pkgnames=($(source "${TMP}/svn-packages-copy/${pkgbase}/trunk/PKGBUILD"; echo "${pkgname[@]}"))
for pkgname in "${pkgnames[@]}"; do
for arch in "${arches[@]}"; do
if ! bsdtar -xOf "${FTP_BASE}/extra/os/${arch}/extra${FILESEXT}" | grep "usr/bin/${pkgname}" &>/dev/null; then