rename metadata.write_metadata() to match metadata.parse_*_metadata()

This changes the function name to include the format of the metadata file,
and also changes the order of the args to match the parse_*_metadata()
functions.
This commit is contained in:
Hans-Christoph Steiner 2015-08-10 22:29:17 +02:00
parent 3b20153cd7
commit 994488ad47
4 changed files with 18 additions and 14 deletions

View file

@ -243,8 +243,7 @@ def main():
f.write(app.RepoType + ' ' + app.Repo)
metadatapath = os.path.join('metadata', package + '.txt')
with open(metadatapath, 'w') as f:
metadata.write_metadata('txt', f, app)
metadata.write_metadata(metadatapath, app)
logging.info("Wrote " + metadatapath)