Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/repo-add.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/repo-add.sh.in')
-rw-r--r--scripts/repo-add.sh.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index c6d25aac..b12188ce 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -172,12 +172,16 @@ db_write_entry()
return 1
fi
- # remove an existing entry if it exists, ignore failures
- db_remove_entry "$pkgname"
-
startdir=$(pwd)
pushd "$gstmpdir" 2>&1 >/dev/null
+ if [ -d "$pkgname-$pkgver" ]; then
+ warning "$(gettext "An entry for '%s' already existed")" "$pkgname-$pkgver"
+ fi
+
+ # remove an existing entry if it exists, ignore failures
+ db_remove_entry "$pkgname"
+
# create package directory
mkdir "$pkgname-$pkgver"
cd "$pkgname-$pkgver"