From 3307d5d35fee2185f3edeea9f5c8d65af9865743 Mon Sep 17 00:00:00 2001 From: Michael Lynch Date: Fri, 22 Sep 2023 09:50:14 -0400 Subject: [PATCH] Bring back --allow-releaseinfo-change-suite (#1630) In #776, we added the `--allow-releaseinfo-change-suite` to avoid erroring out if the Raspbian apt repo changed suite names. In #1604, we deleted the `apt update` command entirely, as it seemed unnecessary after deleting Ansible. In #1623, we brought back the `apt update` command, but we left off the flag we were previously using. In recent installs, I'm seeing this warning: ```bash 4 packages can be upgraded. Run 'apt list --upgradable' to see them. N: Repository 'http://raspbian.raspberrypi.org/raspbian bullseye InRelease' changed its 'Suite' value from 'stable' to 'oldstable' Reading package lists... Done ``` For the sake of preserving longstanging behavior, I think we should bring back the `--allow-releaseinfo-change-suite` flag. Review
on CodeApprove --- bundler/bundle/install | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bundler/bundle/install b/bundler/bundle/install index 3642e8d56..4461bb5f9 100755 --- a/bundler/bundle/install +++ b/bundler/bundle/install @@ -50,7 +50,10 @@ readonly USTREAMER_DEBIAN_PACKAGE TINYPILOT_DEBIAN_PACKAGE="$(ls tinypilot*.deb)" readonly TINYPILOT_DEBIAN_PACKAGE -apt-get update +# Update apt package index files, allowing the apt repos to change suite name. +# See https://github.com/tiny-pilot/tinypilot/issues/764 +apt-get update --allow-releaseinfo-change-suite + apt-get install -y \ "./${JANUS_DEBIAN_PACKAGE}" \ "./${USTREAMER_DEBIAN_PACKAGE}" \