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>
This commit is contained in:
		
							parent
							
								
									0e0f9ff93c
								
							
						
					
					
						commit
						169bb3d0cb
					
				| @ -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"; | ||||
| 		} | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user