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

View file

@ -548,7 +548,7 @@ add() {
} }
remove() { remove() {
if [[ ${1##*.} == "delta" ]]; then if [[ $1 = *-*-*_to_*-*-*.delta ]]; then
deltafile=$1 deltafile=$1
msg "$(gettext "Searching for delta '%s'...")" "$deltafile" msg "$(gettext "Searching for delta '%s'...")" "$deltafile"
if db_remove_delta "$deltafile"; then if db_remove_delta "$deltafile"; then