소스 검색

Make sure to return the updated line when modifying .pb.h file

Hao Nguyen 6 년 전
부모
커밋
3986786182
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)