Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b8639e

Browse files
authored
Prevent rewriting Updater_Signing.h if content unchanged (#7627)
1 parentd030080 commit8b8639e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎tools/signing.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ def main():
7474
outdir=os.path.dirname(args.out)
7575
ifnotos.path.exists(outdir):
7676
os.makedirs(outdir)
77+
try:
78+
withopen(args.out,"r")asinp:
79+
old_val=inp.read()
80+
ifold_val==val:
81+
return
82+
exceptException:
83+
pass
7784
withopen(args.out,"w")asf:
7885
f.write(val)
7986
return0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp