From d2d3d2785d622b9bd8539deca4d79ccc4a3d52c4 Mon Sep 17 00:00:00 2001 From: Parabola Date: Wed, 7 Dec 2011 06:04:39 -0800 Subject: Skip invalid repo-arch pairs (useful for [multilib]) --- db-sync | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db-sync b/db-sync index 110dba1..d86d348 100755 --- a/db-sync +++ b/db-sync @@ -68,6 +68,11 @@ init() { repo_file=$(get_repo_file ${_repo} ${_arch}) + if [ ! -f "${repo_file}" ]; then + warning "${repo_file} doesn't exist, skipping this repo-arch" + continue + fi + # Remove blacklisted packages and count them # TODO capture all removed packages for printing on debug mode msg2 "Removing blacklisted packages: $( -- cgit v1.2.3-54-g00ecf