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:
parent
660bd1caa1
commit
dff6982c83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue