From 184dab8fc164e380e208e1afb86f28601f26a366 Mon Sep 17 00:00:00 2001
From: Sven Roederer <freifunk@it-solutions.geroedel.de>
Date: Tue, 12 May 2020 00:39:09 +0200
Subject: [PATCH] build: ignore deactivated feeds

The OpenWrt feeds.conf.defaults contains some feeds that are commented out
and not active. Such feeds will be returned by the default_feeds.sh script
anyway and causing pseudo feeds. Limit the script to only return active
feeds, by filtering out lines starting with '#'.
This usually only applies to the OpenWrt master branch.

Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>

change as per NeoRider
---
 scripts/default_feeds.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/default_feeds.sh b/scripts/default_feeds.sh
index c1871730b..0806539ac 100644
--- a/scripts/default_feeds.sh
+++ b/scripts/default_feeds.sh
@@ -1 +1,2 @@
-DEFAULT_FEEDS="$(awk '{print $2}' openwrt/feeds.conf.default)"
+# list feeds which don't start with #
+DEFAULT_FEEDS="$(awk '!/^#/ {print $2}' openwrt/feeds.conf.default)"
-- 
GitLab