ACK; looks good to me.
I'll pull this tomorrow, if there are no objections.
On 5/22/23 12:48, Petar Koynov wrote:
Attempting to add feeds with some special names that match
architecture names was returning an error:
"5 The named feed already exists"
Make sourceTypePattern in createFeedLineRegex only match
feed configuration lines src or dist
Signed-off-by: Petar Koynov <petar.koy...@ni.com>
---
opkg-feed | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opkg-feed b/opkg-feed
index 25ef879..36d4463 100755
--- a/opkg-feed
+++ b/opkg-feed
@@ -171,7 +171,7 @@ createFeedLineRegex()
# 1 = full source type with any quotes
# 2 = source type without quotes if quoted
# 3 = source type if unquoted
- sourceTypePattern='("([^"]*)"|(\S+))\s+';
+ sourceTypePattern='("([^"](src|dist)(/gz)?)"|(src|dist)(/gz)?)\s+';
# Feed name capture groups (4, 5, 6)
# 4 = full feed name with any quotes
--
Alex Stewart
Software Engineer - NI Real-Time OS
NI (National Instruments)
alex.stew...@ni.com
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60086): https://lists.yoctoproject.org/g/yocto/message/60086
Mute This Topic: https://lists.yoctoproject.org/mt/99070322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-