Skip to content

Commit

Permalink
partial revert of Botspot@ebd25eb
Browse files Browse the repository at this point in the history
missing sources.list file was already caught in another case that I missed
  • Loading branch information
theofficialgman committed Jul 17, 2023
1 parent fec950a commit 5b48bc4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions api
Original file line number Diff line number Diff line change
Expand Up @@ -1437,15 +1437,6 @@ log_diagnose() { #Given a logfile, explain errors to user, suggest fixes, and ca
#------------------------------------------
#repo issues below
#------------------------------------------
# check if /etc/apt/sources.list exists
if [ ! -f "/etc/apt/sources.list" ]; then
error_caption+=("You are missing your global /etc/apt/sources.list file. You must fix it before Pi-Apps will work.
Refer to your Linux distro's documentation for how to restore this file.
You may have a backup of it in /etc/apt/sources.list.save if you have not deleted that as well.")
error_type="system"
fi

#check for 'E: The repository'
if grep -qF 'E: The repository' <<<"$errors" || grep -qF 'sources.list entry misspelt' <<<"$errors" || grep -qF 'component misspelt in' <<<"$errors" ;then
error_caption+=("APT reported a faulty repository, and you must fix it before Pi-Apps will work.
Expand Down Expand Up @@ -1658,7 +1649,8 @@ deb http://deb.debian.org/debian $(get_codename)-updates main contrib non-free
else
error_caption+=("Packages failed to install because you deleted an important repository file: /etc/apt/sources.list
The contents of this file will vary based on your operating system. You are not using Raspberry Pi OS, so you will have to find what to put in there yourself.")
Refer to your Linux distro's documentation for how to restore this file.
You may have a backup of it in /etc/apt/sources.list.save if you have not deleted that as well.")
fi
error_type="system"
fi
Expand Down

0 comments on commit 5b48bc4

Please sign in to comment.