浏览代码

Merge pull request #6133 from haon4/fix_update_pbh

Make sure to return the updated line when modifying .pb.h file
Hao Nguyen 6 年之前
父节点
当前提交
5f3f3d646d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      update_version.py

+ 1 - 0
update_version.py

@@ -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)