aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-aports/0001-db-fix-split_deps-to-support-fuzzy-operator.patch
blob: a67547116d7296706c339319948a7ce4a8c31d81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 10d9b456afb0f9eba3c24a68b2861f94dc129e07 Mon Sep 17 00:00:00 2001
From: Jakub Jirutka <jakub@jirutka.cz>
Date: Sun, 5 Aug 2018 12:12:00 +0200
Subject: [PATCH] db: fix split_deps() to support fuzzy operator ~

---
 aports/db.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aports/db.lua b/aports/db.lua
index 90dbeef..bb7e136 100644
--- a/aports/db.lua
+++ b/aports/db.lua
@@ -23,7 +23,7 @@ local function split_deps(str)
 		return nil
 	end
 	for e in string.gmatch(str, "%S+") do
-		t[#t + 1] = string.gsub(e, "[=<>].*", "")
+		t[#t + 1] = string.gsub(e, "[=<>~].*", "")
 	end
 	return t
 end
-- 
2.16.4