Skip to content

Commit

Permalink
repo_update.py: Don't count deleted files towards the file count of a…
Browse files Browse the repository at this point in the history
… patch.
  • Loading branch information
nmlgc committed Aug 4, 2014
1 parent 805273f commit b80b135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/repo_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def patch_build(patch_id, servers, f, t):
utils.json_store('files.js', files_js, dirs=[f_path, t_path])
print(
'{num} files, {size}'.format(
num=len(files_js), size=sizeof_fmt(patch_size)
num=len({k: v for k, v in files_js.items() if v is not None}),
size=sizeof_fmt(patch_size)
)
)
return patch_js['title']
Expand Down

0 comments on commit b80b135

Please sign in to comment.