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