From 2a7b4d14c7071d9ca0a89d6704549ae7464c5e55 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Wed, 6 Apr 2011 10:45:27 +0200 Subject: [PATCH] update_repo.sh script correction --- yum/update_repo.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/yum/update_repo.sh b/yum/update_repo.sh index febdb10..aa67ca2 100755 --- a/yum/update_repo.sh +++ b/yum/update_repo.sh @@ -4,10 +4,6 @@ # $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 "---------------------------------------" @@ -27,7 +23,7 @@ update_repo() for repo in dom0-updates installer qubes-dom0 ; do echo "--> Processing repo: $repo..." - check_repo $repo/rpm -o $repo/repodata + check_repo $repo/rpm -o $repo/repodata || continue update_repo $repo -o $repo/repodata done