Merge pull request #6133 from haon4/fix_update_pbh

Make sure to return the updated line when modifying .pb.h file
This commit is contained in:
Hao Nguyen 2019-05-13 19:36:42 -07:00 committed by GitHub
commit 5f3f3d646d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,6 +156,7 @@ def UpdateCpp():
r'^#if .* < PROTOBUF_MIN_PROTOC_VERSION$',
'#if %s < PROTOBUF_MIN_PROTOC_VERSION' % cpp_version,
line)
return line
RewriteTextFile('src/google/protobuf/stubs/common.h', RewriteCommon)
RewriteTextFile('src/google/protobuf/port_def.inc', RewritePortDef)