Commit ba8cc8f3 authored by Andrea Valassi's avatar Andrea Valassi
Browse files

Resync to el8/.gitlab-ci-redhat.sh

parent 588ea4a3
......@@ -141,7 +141,7 @@ if [ "${brn}" == "el7" ] || [ "${brn}" == "el8" ]; then
(! diff tmp0.txt tmp1.txt ) | grep "^>" | grep -v HEP_OSlibs | awk '{print $2}' | sort -u > ./${dep64}.dependencies-installed.txt
(! diff tmp0v.txt tmp1v.txt ) | grep "^>" | grep -v HEP_OSlibs | awk '{print $2}' | sort -u > ./${dep64}.dependencies-installed-nvra.txt
(! diff tmp0s.txt tmp1s.txt ) | grep "^>" | grep -v HEP_OSlibs | awk '{printf "%-48s %12s\n", $2, $3}' | sort -u > tmp2s.txt
awk '{s+=$2}END{print "HEP_OSlibs total_installed_size(bytes): "s"\n"}' tmp2s.txt > ./${dep64}.dependencies-installed-size.txt
awk '{n++; s+=$2}END{print "HEP_OSlibs total_installed_packages: "n; print "HEP_OSlibs total_installed_size(bytes): "s"\n"}' tmp2s.txt > ./${dep64}.dependencies-installed-size.txt
cat tmp2s.txt >> ./${dep64}.dependencies-installed-size.txt
cat tmp1v.txt | sort -u > ./${dep64}.all-installed-nvra.txt
......@@ -156,6 +156,11 @@ if [ "${brn}" == "el7" ] || [ "${brn}" == "el8" ]; then
elif [ "${brn}" == "el7" ]; then # "repoquery --tree-requires" is not supported on CentOS8
repoquery --tree-requires --installed --queryformat '%{NAME}.%{ARCH} %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}' ${pkg64} > ./${dep64}.dependencies-recursive-tree.txt
cat ./${dep64}.dependencies-recursive-tree.txt | awk '{for(i=1;i<=NF;++i) {if($i!="|"&&$i!="\\_"){print $i; break}}}' | grep -v HEP_OSlibs | sort -u > ./${dep64}.dependencies-recursive-flat.txt
elif [ "${brn}" == "el8" ]; then
echo "WARNING! 'repoquery --tree-requires' is not supported on CentOS8"
else
echo "PANIC! Unknown RedHat branch ${brn}"
exit 1
fi
# Add a header to all dependency lists
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment