Skip to content

Commit

Permalink
api: is_supported_system add raspberrypi .com variants of the apt r…
Browse files Browse the repository at this point in the history
…epos

used by default on PiOS bookworm
  • Loading branch information
theofficialgman committed Oct 12, 2023
1 parent f34e909 commit 5aac981
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api
Original file line number Diff line number Diff line change
Expand Up @@ -2541,6 +2541,7 @@ files_match() { #$1 and $2 are paths to files
is_supported_system() { #return 0 if system is supported, otherwise return 1
PRETTY_NAME="$(cat /etc/os-release | grep PRETTY_NAME | tr -d '"' | awk -F= '{print $2}')"
local DEFAULT_REPOS="$(apt-get indextargets --no-release-info --format '$(SITE) $(RELEASE) $(TARGET_OF)' | sort -u | awk '{if ($3=="deb") print $1" "$2 }' | grep "raspbian.raspberrypi.org/raspbian\|archive.raspberrypi.org/debian\|\
raspbian.raspberrypi.com/raspbian\|archive.raspberrypi.com/debian\|
debian.org/debian\|security.debian.org/\|\
ports.ubuntu.com\|esm.ubuntu.com/apps/ubuntu\|esm.ubuntu.com/infra/ubuntu\|\
repo.huaweicloud.com/debian\|repo.huaweicloud.com/ubuntu-ports\|\
Expand Down

0 comments on commit 5aac981

Please sign in to comment.