summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdb-update6
1 files changed, 2 insertions, 4 deletions
diff --git a/db-update b/db-update
index b56a70f..f70bdb9 100755
--- a/db-update
+++ b/db-update
@@ -27,15 +27,13 @@ fi
msg "Updating $reponame..."
-# Remove any package from $stagedir that is already in the FTP repository
for current_arch in ${ARCHES[@]} any; do
ftppath="$FTP_BASE/$reponame/os/$current_arch"
for f in $stagedir/*-$current_arch$PKGEXT; do
bf=$(basename $f)
if [[ -f $ftppath/$bf ]]; then
- warning " Package file $bf already exists in FTP repo" \
- " Removing from $stagedir"
- /bin/rm $f
+ error "Package $bf already exists in $ftppath"
+ exit 1
fi
done
done