summaryrefslogtreecommitdiffstats
path: root/db-update
diff options
context:
space:
mode:
Diffstat (limited to 'db-update')
-rwxr-xr-xdb-update4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-update b/db-update
index 61d1636..70f0525 100755
--- a/db-update
+++ b/db-update
@@ -38,8 +38,8 @@ for repo in ${repos[@]}; do
if ! check_pkgsvn "${pkg}" "${repo}"; then
die "Package ${repo}/$(basename ${pkg}) is not consistent with svn repository"
fi
- if [ -f "${FTP_BASE}/$(get_pkgpool_for_host)/$(basename ${pkg})" ]; then
- die "Package ${repo}/$(basename ${pkg}) already exists in ${FTP_BASE}/$(get_pkgpool_for_host)"
+ if ! check_pkgrepos "${pkg}"; then
+ die "Package ${repo}/$(basename ${pkg}) already exists in another repository"
fi
done
else