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>
This commit is contained in:
Allan McRae 2015-01-27 23:05:10 +10:00
parent 660bd1caa1
commit dff6982c83
1 changed files with 1 additions and 1 deletions

View File

@ -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