From: Felix Fietkau Date: Sun, 15 Sep 2019 17:53:17 +0000 (+0200) Subject: scripts/feeds: fix accepting "-" in feed type string X-Git-Tag: v21.02.0-rc1~5034 X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fopenwrt.git;a=commitdiff_plain;h=d5cd80a1e8e76c19ddb2c5a00a0320330082c4ff scripts/feeds: fix accepting "-" in feed type string Fixes a syntax error in processing the type src-git-full Signed-off-by: Felix Fietkau --- diff --git a/scripts/feeds b/scripts/feeds index 8de4075bc7..69ab60278a 100755 --- a/scripts/feeds +++ b/scripts/feeds @@ -55,7 +55,7 @@ sub parse_file($$) { $line++; next unless /\S/; - my ($type, $flags, $name, $urls) = m!^src-(\w+)((?:\s+--\w+(?:=\S+)?)*)\s+(\w+)(?:\s+(\S.*))?$!; + my ($type, $flags, $name, $urls) = m!^src-([\w\-]+)((?:\s+--\w+(?:=\S+)?)*)\s+(\w+)(?:\s+(\S.*))?$!; unless ($type && $name) { die "Syntax error in $fname, line $line\n"; }