diff options
author | Xin LI <delphij@FreeBSD.org> | 2016-07-11 03:31:12 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2016-07-11 03:31:12 +0000 |
commit | 823c0d5f5e3218bcc89a85b72d36bdba0a23c843 (patch) | |
tree | e0c7978c0a764549be97845e1ef6a235f810b348 /usr.sbin/freebsd-update | |
parent | 24b797cc1a230e751e1aa1e3f50c4868a4d1e6bc (diff) | |
download | src-823c0d5f5e3218bcc89a85b72d36bdba0a23c843.tar.gz src-823c0d5f5e3218bcc89a85b72d36bdba0a23c843.zip |
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
Notes
Notes:
svn path=/head/; revision=302534
Diffstat (limited to 'usr.sbin/freebsd-update')
-rw-r--r-- | usr.sbin/freebsd-update/freebsd-update.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh index feb8db6a6b3c..000c80e7b3c0 100644 --- a/usr.sbin/freebsd-update/freebsd-update.sh +++ b/usr.sbin/freebsd-update/freebsd-update.sh @@ -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 |