Rename write_metadata to specify txt

This commit is contained in:
Daniel Martí 2015-10-03 23:13:18 -07:00
parent 885a3a73f1
commit 082e275aa1
2 changed files with 4 additions and 4 deletions

View file

@ -1038,11 +1038,11 @@ def parse_txt_metadata(apps, metadatapath):
return (appid, thisinfo)
# Write a metadata file.
# Write a metadata file in txt format.
#
# 'mf' - Writer interface (file, StringIO, ...)
# 'app' - The app data
def write_metadata(mf, app):
def write_txt_metadata(mf, app):
def writecomments(key):
written = 0

View file

@ -61,14 +61,14 @@ def main():
# read in metadata.py
with open(metadatapath, 'r') as f:
cur_content = f.read()
metadata.write_metadata(s, app)
metadata.write_txt_metadata(s, app)
content = s.getvalue()
s.close()
if content != cur_content:
print(metadatapath)
else:
with open(metadatapath, 'w') as f:
metadata.write_metadata(f, app)
metadata.write_txt_metadata(f, app)
logging.debug("Finished.")