diff options
author | Allan McRae <allan@archlinux.org> | 2015-01-27 23:05:10 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-02-12 13:35:48 +1000 |
commit | dff6982c83e2db31b8a7925082fce7977eaed233 (patch) | |
tree | 39adcc8ec30b13858512f3bb0b5fe536367912f6 | |
parent | 660bd1caa1a0e39dd23f66cc853de963d20058d8 (diff) | |
download | 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>
-rw-r--r-- | scripts/repo-add.sh.in | 2 |
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 |