Skip to content

Commit

Permalink
api: add additional log diagnosis for developers
Browse files Browse the repository at this point in the history
now includes package info from dependencies of pi-apps local repository packages
  • Loading branch information
theofficialgman committed Jul 12, 2023
1 parent 73f623f commit 88d44c6
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 @@ -1619,6 +1619,7 @@ In any case, Pi-Apps cannot work until you solve this issue. Try disabling any 3
echo -e "Additional log diagnosis for developers below:\n" >> "$logfile"
grep -E "^ .* : Depends:" <<<"$errors" | awk '{print $1, $4}' | tr " " "\n" | uniq | awk '/:armhf/{print; gsub(/:armhf/, ":arm64")}1' | xargs apt-cache show >> "$logfile"
grep -E "^ +Depends:" <<<"$errors" | awk '{print $2}' | uniq | awk '/:armhf/{print; gsub(/:armhf/, ":arm64")}1' | xargs apt-cache show >> "$logfile"
grep -E "^Depends:" <<<"$errors" | cut -d' ' -f2- | sed "s/, /\n/g" | sed "s/:any//g" | sed 's/([^)]*)//g;s/ / /g' | xargs apt-cache show >> "$logfile"
fi

#if RPi OS, check for /etc/apt/sources.list.d/raspi.list
Expand Down

0 comments on commit 88d44c6

Please sign in to comment.