diff options
author | delphij <delphij@FreeBSD.org> | 2016-07-11 04:50:32 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2016-07-11 04:50:32 +0000 |
commit | 100d6545ff86fa25f39f8673c4dd370abf8245d1 (patch) | |
tree | 6775f5467db4d85615bcd3cca295263544592d75 | |
parent | 61c45f00da573053707c5dda0c2edf8fc7e2bcb3 (diff) | |
download | FreeBSD-src-100d6545ff86fa25f39f8673c4dd370abf8245d1.zip FreeBSD-src-100d6545ff86fa25f39f8673c4dd370abf8245d1.tar.gz |
MFC r302534:
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: re (gjb)
-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 feb8db6..000c80e 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 |