Allow - in distribution names. This is needed for freebsd-update to work
with 11.0+, where the debugging symbols use a new naming scheme for release distribution files. Errata candidate. Approved by: cperciva Differential Revision: https://reviews.freebsd.org/D7170
This commit is contained in:
parent
88f8a963db
commit
8e93e7a241
@ -1250,7 +1250,7 @@ fetch_metadata_sanity () {
|
||||
|
||||
# Check that the first four fields make sense.
|
||||
if gunzip -c < files/$1.gz |
|
||||
grep -qvE "^[a-z]+\|[0-9a-z]+\|${P}+\|[fdL-]\|"; then
|
||||
grep -qvE "^[a-z]+\|[0-9a-z-]+\|${P}+\|[fdL-]\|"; then
|
||||
fetch_metadata_bogus ""
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user