2011-04-01 16:52:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
# $1 -- path to rpm dir
|
|
|
|
check_repo()
|
|
|
|
{
|
|
|
|
if rpm --checksig $1/*.rpm | grep -v pgp > /dev/null ; then
|
|
|
|
echo "ERROR: There are unsigned RPM packages in $1 repo:"
|
|
|
|
echo "---------------------------------------"
|
|
|
|
rpm --checksig $1/*.rpm | grep -v pgp
|
|
|
|
echo "---------------------------------------"
|
|
|
|
echo "Sign them before proceeding."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
update_repo()
|
|
|
|
{
|
|
|
|
createrepo --update $1
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-04-02 14:00:18 +00:00
|
|
|
for repo in dom0-updates installer qubes-dom0 ; do
|
2011-04-01 16:52:15 +00:00
|
|
|
echo "--> Processing repo: $repo..."
|
2011-04-06 08:45:27 +00:00
|
|
|
check_repo $repo/rpm -o $repo/repodata || continue
|
2011-04-01 16:52:15 +00:00
|
|
|
update_repo $repo -o $repo/repodata
|
|
|
|
done
|
|
|
|
|
|
|
|
#yum clean metadata
|