summaryrefslogtreecommitdiffstats
path: root/scripts/repo-remove.sh.in
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-02-05 19:31:23 -0600
committerDan McGee <dan@archlinux.org>2008-02-05 19:31:23 -0600
commiteca30ed66accd7c1555eb94cbdea60051efcf7f3 (patch)
tree3ec7f3387dea753bb68968c66597a1aa8e091ab4 /scripts/repo-remove.sh.in
parent93a3050ed9e9735352013014da52adcdf896f95f (diff)
parentb29838c8250125a22016c16180e941d059d55539 (diff)
downloadpacman-eca30ed66accd7c1555eb94cbdea60051efcf7f3.tar.xz
Merge branch 'maint'
Conflicts: contrib/gensync contrib/updatesync
Diffstat (limited to 'scripts/repo-remove.sh.in')
-rw-r--r--scripts/repo-remove.sh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/repo-remove.sh.in b/scripts/repo-remove.sh.in
index 05bec390..fe230b02 100644
--- a/scripts/repo-remove.sh.in
+++ b/scripts/repo-remove.sh.in
@@ -25,7 +25,6 @@ export TEXTDOMAINDIR='@localedir@'
myver='@PACKAGE_VERSION@'
confdir='@sysconfdir@'
-FORCE=0
REPO_DB_FILE=""
msg() {
@@ -169,6 +168,9 @@ if [ $success -eq 1 ]; then
esac
bsdtar -c${TAR_OPT}f "$REPO_DB_FILE" *
+ else
+ error "$(gettext "All packages have been removed from the database. Deleting '%s'.")" "$REPO_DB_FILE"
+ rm "$REPO_DB_FILE"
fi
popd 2>&1 >/dev/null