update common funtions

This commit is contained in:
MacRimi 2025-08-07 19:24:39 +02:00
parent d6e0519a3d
commit 75c12e2d4b
2 changed files with 1 additions and 4 deletions

View File

@ -223,7 +223,6 @@ cleanup_duplicate_repos_pve9() {
if grep -q "^deb.*$url_match" "$sources_file"; then if grep -q "^deb.*$url_match" "$sources_file"; then
sed -i "/^deb.*$url_match/s/^/# /" "$sources_file" sed -i "/^deb.*$url_match/s/^/# /" "$sources_file"
cleaned_count=$((cleaned_count + 1)) cleaned_count=$((cleaned_count + 1))
msg_info "$(translate "Commented $src lines in sources.list (using .sources format)")"
fi fi
fi fi
@ -232,7 +231,6 @@ cleanup_duplicate_repos_pve9() {
if grep -q "^deb.*$url_match" "$list_file"; then if grep -q "^deb.*$url_match" "$list_file"; then
sed -i "/^deb.*$url_match/s/^/# /" "$list_file" sed -i "/^deb.*$url_match/s/^/# /" "$list_file"
cleaned_count=$((cleaned_count + 1)) cleaned_count=$((cleaned_count + 1))
msg_info "$(translate "Commented $src lines in $(basename "$list_file") (using .sources format)")"
fi fi
done done
fi fi

View File

@ -160,7 +160,6 @@ EOF
cleanup_duplicate_repos cleanup_duplicate_repos
msg_info "$(translate "Updating package lists...")"
update_output=$(apt-get update 2>&1) update_output=$(apt-get update 2>&1)
update_exit_code=$? update_exit_code=$?
@ -186,7 +185,7 @@ EOF
fi fi
msg_info "$(translate "Verifying Proxmox VE 9.x repositories...")"
if apt policy 2>/dev/null | grep -q "${TARGET_CODENAME}.*pve-no-subscription"; then if apt policy 2>/dev/null | grep -q "${TARGET_CODENAME}.*pve-no-subscription"; then
msg_ok "$(translate "Proxmox VE 9.x repositories verified")" msg_ok "$(translate "Proxmox VE 9.x repositories verified")"
else else