mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Inline dependency reporting in log.
This commit is contained in:
parent
a91bf7b286
commit
f9b0016d02
|
@ -40,11 +40,11 @@ for package in ${normalized_packages}; do
|
||||||
manifest_main="${manifest_main}${package_name}:${package_ver},"
|
manifest_main="${manifest_main}${package_name}:${package_ver},"
|
||||||
|
|
||||||
all_packages="$(apt-get install --dry-run --yes "${package_name}" | grep "^Inst" | awk '{print $2}')"
|
all_packages="$(apt-get install --dry-run --yes "${package_name}" | grep "^Inst" | awk '{print $2}')"
|
||||||
dep_packages="$(grep -v "${package_name}" <<< ${all_packages})"
|
dep_packages="$(echo ${dep_packages} | grep -v "${package_name}" | tr '\n' ,)"
|
||||||
|
|
||||||
echo "- ${package_name}"
|
echo "- ${package_name}"
|
||||||
echo " * Version: ${package_ver}"
|
echo " * Version: ${package_ver}"
|
||||||
echo " * Dependencies: ${dep_packages}"
|
echo " * Dependencies: ${dep_packages:0:-1}"
|
||||||
echo -n " * Installing..."
|
echo -n " * Installing..."
|
||||||
# Zero interaction while installing or upgrading the system via apt.
|
# Zero interaction while installing or upgrading the system via apt.
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes install "${package}" > /dev/null
|
sudo DEBIAN_FRONTEND=noninteractive apt-get --yes install "${package}" > /dev/null
|
||||||
|
|
Loading…
Reference in a new issue