Use rootful container for testing

This commit is contained in:
2025-04-24 09:45:51 -04:00
parent 4fd7134365
commit 3325f933b5

View File

@@ -782,7 +782,7 @@ acquire_deb_new() {
# Define the repositories to search # Define the repositories to search
cnt=$(sudo buildah from --quiet alpine:edge) && cnt=$(sudo buildah from --quiet alpine:edge) &&
buildah run "$cnt" -- sh -c ' sudo buildah run "$cnt" -- sh -c '
apk add apt &>/dev/null apk add apt &>/dev/null
mkdir -p /download mkdir -p /download
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
@@ -795,8 +795,8 @@ acquire_deb_new() {
apt update --allow-insecure-repositories &>/dev/null apt update --allow-insecure-repositories &>/dev/null
cd /download cd /download
apt download "mediacenter'"$MC_MVERSION"'"' && apt download "mediacenter'"$MC_MVERSION"'"' &&
buildah copy "$cnt" /download/MediaCenter-"$MC_VERSION"*.deb "$OUTPUT_DIR/SOURCES/" && sudo buildah copy "$cnt" /download/MediaCenter-"$MC_VERSION"*.deb "$OUTPUT_DIR/SOURCES/" &&
buildah rm "$cnt" sudo buildah rm "$cnt"
# Return if the download was successful # Return if the download was successful
((found)) && [[ -f $MC_DEB ]] ((found)) && [[ -f $MC_DEB ]]