[pacman-dev] [PATCH] repo-add: improve delta file detection on removal

Allan McRae allan at archlinux.org
Tue Jan 27 13:05:57 UTC 2015


This allows use to remove a package with the name "foo.delta" from the
repos.

Signed-off-by: Allan McRae <allan at archlinux.org>
---
 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 4864d46..b2789a8 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -561,7 +561,7 @@ add() {
 }
 
 remove() {
-	if [[ $1 == "*-*-*_to_*-*-*.delta" ]]; then
+	if [[ $1 = *-*-*_to_*-*-*.delta ]]; then
 		deltafile=$1
 		msg "$(gettext "Searching for delta '%s'...")" "$deltafile"
 		if db_remove_delta "$deltafile"; then
-- 
2.2.2


More information about the pacman-dev mailing list