* [opkg-utils PATCH V2] opkg-feed: Fix adding feeds with same name as architecture
@ 2023-05-22 17:48 Petar Koynov
2023-05-22 18:35 ` Alex Stewart
2023-05-24 16:01 ` Alex Stewart
0 siblings, 2 replies; 3+ messages in thread
From: Petar Koynov @ 2023-05-22 17:48 UTC (permalink / raw)
To: opkg-devel, yocto, alex.stewart; +Cc: Petar Koynov
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.koynov@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
--
2.32.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [opkg-utils PATCH V2] opkg-feed: Fix adding feeds with same name as architecture
2023-05-22 17:48 [opkg-utils PATCH V2] opkg-feed: Fix adding feeds with same name as architecture Petar Koynov
@ 2023-05-22 18:35 ` Alex Stewart
2023-05-24 16:01 ` Alex Stewart
1 sibling, 0 replies; 3+ messages in thread
From: Alex Stewart @ 2023-05-22 18:35 UTC (permalink / raw)
To: Petar Koynov; +Cc: opkg-devel, yocto
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.koynov@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.stewart@ni.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [opkg-utils PATCH V2] opkg-feed: Fix adding feeds with same name as architecture
2023-05-22 17:48 [opkg-utils PATCH V2] opkg-feed: Fix adding feeds with same name as architecture Petar Koynov
2023-05-22 18:35 ` Alex Stewart
@ 2023-05-24 16:01 ` Alex Stewart
1 sibling, 0 replies; 3+ messages in thread
From: Alex Stewart @ 2023-05-24 16:01 UTC (permalink / raw)
To: Petar Koynov; +Cc: opkg-devel, yocto
Pulled to opkg-utils as 67994e62dc598282830385da75ba9b1abbbda941 [1].
[1]
https://git.yoctoproject.org/opkg-utils/commit/?id=67994e62dc598282830385da75ba9b1abbbda941
Thanks!
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.koynov@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.stewart@ni.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-05-24 16:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-22 17:48 [opkg-utils PATCH V2] opkg-feed: Fix adding feeds with same name as architecture Petar Koynov
2023-05-22 18:35 ` Alex Stewart
2023-05-24 16:01 ` Alex Stewart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).