From 90d1cef1ef1163b0bcd16b328b8514c7c1344e6e Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Mon, 11 Mar 2024 18:25:38 -0400 Subject: [PATCH] api: fix bug in `refresh_all_pkgapp_status` introduced in https://github.com/Botspot/pi-apps/commit/ae99e1b2d2a2de68f3812087ed60162aa1d46692 the change from `arch` to `dpkg_arch` was a last minute change and one location was missed --- api | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api b/api index 5b779a393e..e4eb0cf34d 100755 --- a/api +++ b/api @@ -1847,7 +1847,7 @@ refresh_all_pkgapp_status() { #for every package-app, if dpkg thinks it's instal local apt_cache_output="$(echo "$packages" | xargs -r apt-cache policy)" #redefine package_installed to only read /var/lib/dpkg/status once - local dpkg_status="$(grep -x "Package: \($(echo "$packages" | sed 's/:'"$arch"'//g ; s/ /\\|/g')\)" -A 2 /var/lib/dpkg/status)" + local dpkg_status="$(grep -x "Package: \($(echo "$packages" | sed 's/:'"$dpkg_arch"'//g ; s/ /\\|/g')\)" -A 2 /var/lib/dpkg/status)" #redefine package_available() to use apt_cache_output and avoid running apt-cache multiple times (package_available() { #this will only be used in this function's subprocesses.