refactor: update package lists only when stale #346

Merged
cravl-dev merged 11 commits from fix-334 into master 2023-06-17 18:08:24 +02:00
Showing only changes of commit bbc341b35d - Show all commits

View File

@@ -381,7 +381,7 @@ function update_system_package_lists() {
if ! sudo apt-get update --allow-releaseinfo-change &>/dev/null; then
log_error "Failure while updating package lists!"
if [[ ! ${silent} == "true" ]]; then error_msg "Updating package lists failed!"; fi
exit 1
return 1
else
log_info "Package lists updated successfully"
if [[ ! ${silent} == "true" ]]; then status_msg "Updated package lists."; fi