aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2019-09-15 19:53:17 +0200
committerFelix Fietkau <nbd@nbd.name>2019-09-15 19:55:00 +0200
commit169bb3d0cbbbfce3e0cec5ca99e40e6f9bb3650f (patch)
tree21015807c980ffec3d8954611cbcad5ad9b35445
parent0e0f9ff93c4a6088641555d21b7d3143c5dbe945 (diff)
downloadupstream-169bb3d0cbbbfce3e0cec5ca99e40e6f9bb3650f.tar.gz
upstream-169bb3d0cbbbfce3e0cec5ca99e40e6f9bb3650f.tar.bz2
upstream-169bb3d0cbbbfce3e0cec5ca99e40e6f9bb3650f.zip
scripts/feeds: fix accepting "-" in feed type string
Fixes a syntax error in processing the type src-git-full Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rwxr-xr-xscripts/feeds2
1 files changed, 1 insertions, 1 deletions
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";
}