Verified Commit c4049f3f authored by Morten Linderud's avatar Morten Linderud 🏄
Browse files

test/lib/common: Make checkRemovedPackage aware of debug packages



This ensures we do not have the debug repository at hand when looking at
the SVN state files. However, there is no good way to figure out if we
have a debug package as .BUILDINFO nor .PKGINFO has the information we
need.

We blindly assume that any package where we look up a *-debug repository
is a debug package.
Signed-off-by: Morten Linderud's avatarMorten Linderud <morten@linderud.pw>
parent 46284a3f
......@@ -283,8 +283,7 @@ checkRemovedPackage() {
local pkgbase=$2
svn up -q "${TMP}/svn-packages-copy/${pkgbase}"
if __isGlobfile "${TMP}/svn-packages-copy/${pkgbase}/repos/${repo}-"+([^-])"/PKGBUILD"; then
if __isGlobfile "${TMP}/svn-packages-copy/${pkgbase}/repos/${repo%-debug}-"+([^-])"/PKGBUILD"; then
return 1
fi
......@@ -303,7 +302,14 @@ checkRemovedPackageDB() {
local pkgname
pkgarches=($(. "fixtures/$pkgbase/PKGBUILD"; echo ${arch[@]}))
pkgnames=($(. "fixtures/$pkgbase/PKGBUILD"; echo ${pkgname[@]}))
# TODO: We need a better way to figure out when we are dealing with
# debug packages
if [[ "${repo}" = *-debug ]]; then
pkgnames=("${pkgbase}-debug")
else
pkgnames=($(. "fixtures/$pkgbase/PKGBUILD"; echo "${pkgname[@]}"))
fi
if [[ ${pkgarches[@]} == any ]]; then
tarches=(${ARCHES[@]})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment