summaryrefslogtreecommitdiff
path: root/db-sync
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-12-07 06:04:39 -0800
committerParabola <dev@list.parabolagnulinux.org>2011-12-07 06:04:39 -0800
commitd2d3d2785d622b9bd8539deca4d79ccc4a3d52c4 (patch)
treed1d5867f020c18c064d2fa46ab12f1dc99635d42 /db-sync
parent323b2e1d83af45b7e4fe90c4822d3366cc48e588 (diff)
Skip invalid repo-arch pairs (useful for [multilib])
Diffstat (limited to 'db-sync')
-rwxr-xr-xdb-sync5
1 files changed, 5 insertions, 0 deletions
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: $(