2011-04-01 16:52:15 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
# $1 -- path to rpm dir
|
|
|
|
check_repo()
|
|
|
|
{
|
2011-11-10 17:01:19 +00:00
|
|
|
if ! ../rpm_verify $1/*.rpm ; then
|
2011-04-01 16:52:15 +00:00
|
|
|
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()
|
|
|
|
{
|
2012-11-19 16:48:21 +00:00
|
|
|
createrepo -q -g ../../conf/comps-qubes.xml --update $1
|
2011-04-01 16:52:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-04-02 14:00:18 +00:00
|
|
|
for repo in dom0-updates installer qubes-dom0 ; do
|
2012-11-19 16:48:21 +00:00
|
|
|
echo "---> Processing repo: $repo..."
|
|
|
|
ls $repo/rpm/*.rpm 2>/dev/null 1>&2
|
2011-11-09 16:32:14 +00:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "Empty repo, skipping..."
|
|
|
|
continue
|
|
|
|
fi
|
2011-11-10 17:01:19 +00:00
|
|
|
check_repo $repo/rpm -o $repo/repodata
|
2011-04-01 16:52:15 +00:00
|
|
|
update_repo $repo -o $repo/repodata
|
|
|
|
done
|
|
|
|
|
|
|
|
#yum clean metadata
|