mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2026-07-31 19:09:06 +00:00
boop
This commit is contained in:
parent
f49eb3386b
commit
c81b0c1652
|
|
@ -106,6 +106,12 @@ fi
|
||||||
|
|
||||||
# Trim commas, excess spaces, and sort.
|
# Trim commas, excess spaces, and sort.
|
||||||
log "Normalizing package list..."
|
log "Normalizing package list..."
|
||||||
|
# Ensure apt database is updated before calling apt_query (which uses apt-cache)
|
||||||
|
if [[ -z "$(find -H /var/lib/apt/lists -maxdepth 0 -mmin -5 2>/dev/null)" ]]; then
|
||||||
|
log "Updating APT package list for normalization..."
|
||||||
|
sudo apt-get update -qq > /dev/null 2>&1
|
||||||
|
log "done"
|
||||||
|
fi
|
||||||
packages="$(get_normalized_package_list "${combined_packages}")"
|
packages="$(get_normalized_package_list "${combined_packages}")"
|
||||||
log "normalized packages: '${packages}'"
|
log "normalized packages: '${packages}'"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue