summaryrefslogtreecommitdiffstats
path: root/archive_dscverify.sh
blob: 3c36392e8c9bcb9d1b9cfe22d49fd8ef1f7b0cfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

echo -n "Verifying... "

for DIRECTORY in */*/
do
	if ls ${DIRECTORY}/*.dsc > /dev/null 2>&1 && ! ls ${DIRECTORY}/.dscverified > /dev/null 2>&1
	then
		cd ${DIRECTORY}
		( dscverify *.dsc || dscverify --keyring ~/.gnupg/pubring.kbx *.dsc ) && touch .dscverified
		cd ${OLDPWD}
	else
		echo -n "."
	fi
done

echo " done."