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
24b797cc1a
commit
823c0d5f5e
@ -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