Attempting to add feeds with some special names was returning an error:
"5 The named feed already exists"
This is because the feed name matched with a configured architecture.
Add a second grep to feedExists to ignore lines starting with "arch".
Signed-off-by: Petar Koynov <[email protected]>
---
opkg-feed | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opkg-feed b/opkg-feed
index 25ef879..98850fa 100755
--- a/opkg-feed
+++ b/opkg-feed
@@ -300,7 +300,7 @@ feedExists()
fi
local feedRegex="$( createFeedLineRegex "$1" )"
- grep -Eoh "$feedRegex" "${ARGS[confDir]}"/*.conf &>/dev/null
+ grep -Eoh "$feedRegex" "${ARGS[confDir]}"/*.conf | grep -vE "^arch\s"
&>/dev/null
if [[ "$?" == "$IE_GREP_MATCH" ]] ; then
return $S_OK
fi
--
2.32.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#60046): https://lists.yoctoproject.org/g/yocto/message/60046
Mute This Topic: https://lists.yoctoproject.org/mt/98954183/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-