From dff6982c83e2db31b8a7925082fce7977eaed233 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Tue, 27 Jan 2015 23:05:10 +1000 Subject: 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 --- scripts/repo-add.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2