0589e35f48
1) Use /tmp/qubes-installer-workdir instead of the ugly /Devel/Qubes 2) Use local fedora repo instead of the remote one 3) Still keep the remote fedora repo for extra packages (with higher cost though) 4) Use local repo keys!!! 5) Use nice update_repo.sh script All in all now use 5 repos during installation: * build/yum/installer (installer-related rpms) * build/yum/qubes-dom0 (all the Qubes stuff) * build/yum/dom0-updates (for select 3rd party packages, e.g. Xorg) * build/fedora13-repo (local fedora 13 repo, copy from DVD, we don't keep it uder build/yum, because we don't want our update script to process it every time) * remote fedora repo for extra packages (usually deps for qubes-dom0)
35 lines
735 B
Bash
Executable File
35 lines
735 B
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
# $1 -- path to rpm dir
|
|
check_repo()
|
|
{
|
|
if ! [ $(ls -A "$1/*.rpm" 2>/dev/null) ] ; then
|
|
echo -n "Repo $1 is empty!"
|
|
return
|
|
fi
|
|
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
|
|
}
|
|
|
|
|
|
for repo in * ; do
|
|
echo "--> Processing repo: $repo..."
|
|
check_repo $repo/rpm -o $repo/repodata
|
|
update_repo $repo -o $repo/repodata
|
|
done
|
|
|
|
#yum clean metadata
|