mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Fix all packages reporting.
This commit is contained in:
parent
d5b9449cd3
commit
053557ecd1
|
@ -39,8 +39,8 @@ for package in ${normalized_packages}; do
|
||||||
# Comma delimited name:ver pairs in the main requested packages manifest.
|
# Comma delimited name:ver pairs in the main requested packages manifest.
|
||||||
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" | sort | awk '{print $2 $3}' | tr '(' ':'))"
|
||||||
dep_packages="$(echo ${all_packages} | grep -v "${package_name}" | tr '\n' ,)"
|
dep_packages="$(echo "${all_packages}" | grep -v "${package_name}" | tr '\n' ,)"
|
||||||
if "${dep_packages}" == ","; then
|
if "${dep_packages}" == ","; then
|
||||||
dep_packages="none";
|
dep_packages="none";
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue