update_repo.sh: do not panic when a repo is empty

This commit is contained in:
Joanna Rutkowska 2011-11-09 17:32:14 +01:00
parent 770d48c63b
commit 6763fb299d

View File

@ -23,7 +23,11 @@ update_repo()
for repo in dom0-updates installer qubes-dom0 ; do
echo "--> Processing repo: $repo..."
check_repo $repo/rpm -o $repo/repodata || continue
ls $repo/rpm/*.rpm 2>/dev/null
if [ $? -ne 0 ]; then
echo "Empty repo, skipping..."
continue
fi
if [ x$NO_SIGN != x"1" ]; then
check_repo $repo/rpm -o $repo/repodata || continue
fi