yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: Petar Koynov <petar.koynov@ni.com>
To: <opkg-devel@googlegroups.com>, <yocto@lists.yoctoproject.org>,
	<alex.stewart@ni.com>
Cc: Petar Koynov <petar.koynov@ni.com>
Subject: [opkg-utils PATCH V2]         opkg-feed: Fix adding feeds with same name as architecture
Date: Mon, 22 May 2023 12:48:16 -0500	[thread overview]
Message-ID: <20230522174815.1110222-1-petar.koynov@ni.com> (raw)

        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



             reply	other threads:[~2023-05-22 17:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-22 17:48 Petar Koynov [this message]
2023-05-22 18:35 ` [opkg-utils PATCH V2] opkg-feed: Fix adding feeds with same name as architecture Alex Stewart
2023-05-24 16:01 ` Alex Stewart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230522174815.1110222-1-petar.koynov@ni.com \
    --to=petar.koynov@ni.com \
    --cc=alex.stewart@ni.com \
    --cc=opkg-devel@googlegroups.com \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).