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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue