index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Xavier Chantry <shiningxc@gmail.com> | 2009-02-26 18:00:15 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-02-28 15:33:39 -0600 |
commit | f09f82ee595319917c794dff69486bca851a5601 (patch) | |
tree | 5303840d1050c8dec9ab6d85dafa7c42a0495619 | |
parent | 2268981ebf562a7dda1e788dbd931e48adf9fabb (diff) |
-rw-r--r-- | scripts/repo-add.sh.in | 10 |
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" |