summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2015-01-27 14:05:10 +0100
committerAllan McRae <allan@archlinux.org>2015-02-12 04:35:48 +0100
commitdff6982c83e2db31b8a7925082fce7977eaed233 (patch)
tree39adcc8ec30b13858512f3bb0b5fe536367912f6 /scripts
parent660bd1caa1a0e39dd23f66cc853de963d20058d8 (diff)
downloadpacman-dff6982c83e2db31b8a7925082fce7977eaed233.tar.gz
pacman-dff6982c83e2db31b8a7925082fce7977eaed233.tar.xz
repo-add: improve delta file detection on removal
This allows use to remove a package with the name "foo.delta" from the repos. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/repo-add.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 0da34b82..bf374443 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -548,7 +548,7 @@ add() {
}
remove() {
- if [[ ${1##*.} == "delta" ]]; then
+ if [[ $1 = *-*-*_to_*-*-*.delta ]]; then
deltafile=$1
msg "$(gettext "Searching for delta '%s'...")" "$deltafile"
if db_remove_delta "$deltafile"; then