Skip to content
Snippets Groups Projects
Commit d8675810 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Add installation log to CI artifacts

parent 53eaa7cb
No related branches found
No related tags found
1 merge request!1Add Ubuntu 2404 (noble numbat)
......@@ -80,7 +80,9 @@ if [ "${brn}" == "ubuntu1604" ] || [ "${brn}" == "ubuntu1704" ]; then
# (compare packages in O/S before and after installation of meta-package)
apt list --installed > tmp0.txt
dpkg-query -Wf '${binary:Package} ${Installed-Size}\n' > tmp0s.txt
if ! apt-get -qy install ./${deb64} > tmplog.txt; then cat tmplog.txt; echo "ERROR! ${deb64} could not be installed"; exit 1; else echo "${deb64} has been installed"; fi
if ! apt-get -qy install ./${deb64} > tmplog.txt; then cat tmplog.txt; echo "ERROR! ${deb64} could not be installed"; exit 1; else mv tmplog.txt ./${dep64}.installation-log.txt; echo "${deb64} has been installed"; fi
###if ! apt-get -qy install ./${deb64}; then echo "ERROR! ${deb64} could not be installed"; exit 1; else echo "${deb64} has been installed"; fi
###if ! apt-get -qy install ./${deb64} | tee ./${dep64}.installation-log.txt; then echo "ERROR! ${deb64} could not be installed"; exit 1; else echo "${deb64} has been installed"; fi
apt list --installed > tmp1.txt
dpkg-query -Wf '${binary:Package} ${Installed-Size}\n' > tmp1s.txt
(! diff tmp0.txt tmp1.txt ) | grep "^>" | grep -v heposlibs | awk '{split($2,p,"/"); print p[1]}' | sort -u > ./${dep64}.dependencies-installed.txt # apt list gives e.g. "pkg/xenial"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment