ソースを参照

Swap apt-get for apt

bryan 3 日 前
コミット
17bc38827a
1 ファイル変更3 行追加3 行削除
  1. 3 3
      installJRMC

+ 3 - 3
installJRMC

@@ -429,7 +429,7 @@ get_latest_mc_version() {
 			Components: main
 			Architectures: amd64 armhf arm64
 		EOF
-    apt-get update -o Acquire::AllowInsecureRepositories=true' &&
+    apt-get update --allow-insecure-repositories' &&
   MC_VERSION=$(buildah run "$cnt" -- apt-cache policy "mediacenter$MC_MVERSION" | grep Candidate | awk '{print $2}' | sort -V | tail -n1) &>/dev/null &&
   [[ $MC_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
     mc_version_source="containerized package manager"
@@ -792,9 +792,9 @@ acquire_deb_new() {
 			Components: main
 			Architectures: amd64 armhf arm64
 		EOF
-    apt update --allow-insecure-repositories &>/dev/null
+    apt-get update --allow-insecure-repositories &>/dev/null
     cd /download
-    apt-get download -t '"$MC_REPO"' -a '"$ARCH"' mediacenter'"$MC_MVERSION"'' &&
+    apt-get download --allow-unauthenticated mediacenter'"$MC_MVERSION"'' &&
   sudo buildah copy "$cnt" /download/MediaCenter-"$MC_VERSION"*.deb "$OUTPUT_DIR/SOURCES/" &&
   sudo buildah rm "$cnt"