Add a little debugging info to the get_sources script

This will tell which part of the script is being considered when it is
retrieving the sources from the lookaside cache.

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2022-03-03 09:56:28 +01:00
parent 04de770669
commit 5480ad2988

View file

@ -147,6 +147,7 @@ else
fi
if [[ -f sources ]]; then
echo "Flat layout style"
if [[ ! -s sources ]]; then
echo "Empty sources file -- nothing to check"
else
@ -197,6 +198,7 @@ if [[ -f sources ]]; then
"${hashtype}sum" -c sources
fi
else
echo "Exploded SRPM layout style"
# This section is for the "non-flat" dist-git layout, where the spec file
# is stored in a SPECS folder, the patches in a SOURCES folder and the sha
# of the tarball of the project is present in a '.<pkg_name>.metadata' file.