Make it possible to compare with source tarball

This commit is contained in:
Jeremy Soller 2017-07-22 13:39:29 -06:00
parent e6071db0a1
commit 943fe8ae8c

View File

@ -16,7 +16,11 @@ do
if [ -d "recipes/$recipe/source/.git" ]
then
git -C "recipes/$recipe/source" status
elif [ -e "recipes/$recipe/source.tar" ]
then
echo "Using source tarball"
tar --compare --file="recipes/$recipe/source.tar" -C "recipes/$recipe/source" --strip-components=1 2>&1| grep -v "tar: :" | grep -v '\(Mode\|Gid\|Uid\) differs' || true
else
echo "Not a git repository"
echo "No original source found"
fi
done