aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2016-07-11 03:31:12 +0000
committerXin LI <delphij@FreeBSD.org>2016-07-11 03:31:12 +0000
commit823c0d5f5e3218bcc89a85b72d36bdba0a23c843 (patch)
treee0c7978c0a764549be97845e1ef6a235f810b348
parent24b797cc1a230e751e1aa1e3f50c4868a4d1e6bc (diff)
downloadsrc-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
-rw-r--r--usr.sbin/freebsd-update/freebsd-update.sh2
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