From 053557ecd1faef084fb18e80f6847038dd0f5925 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Fri, 15 Jul 2022 16:11:14 -0700 Subject: [PATCH] Fix all packages reporting. --- install_and_cache_pkgs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index 2c22fb2..79389dd 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -39,8 +39,8 @@ for package in ${normalized_packages}; do # Comma delimited name:ver pairs in the main requested packages manifest. manifest_main="${manifest_main}${package_name}:${package_ver}," - all_packages="$(apt-get install --dry-run --yes "${package_name}" | grep "^Inst" | awk '{print $2}')" - dep_packages="$(echo ${all_packages} | grep -v "${package_name}" | tr '\n' ,)" + all_packages="$(apt-get install --dry-run --yes "${package_name}" | grep "^Inst" | sort | awk '{print $2 $3}' | tr '(' ':'))" + dep_packages="$(echo "${all_packages}" | grep -v "${package_name}" | tr '\n' ,)" if "${dep_packages}" == ","; then dep_packages="none"; fi