Add traces at the end of the upload

This commit is contained in:
Xawotihs
2014-12-04 22:51:38 +01:00
parent 56ccebb720
commit 15cd86fad1

View File

@@ -59,8 +59,9 @@ def main():
r = checkRelease(repository, options.remote) r = checkRelease(repository, options.remote)
filename = options.remote filename = options.remote
with open(options.local, 'rb') as fd: with open(options.local, 'rb') as fd:
r.upload_asset('application/zip', filename , fd) asset = r.upload_asset('application/zip', filename , fd)
s = 'File ' + options.local + ' has been uploaded as ' + asset.name + '.'
print s
if __name__ == "__main__": if __name__ == "__main__":
main() main()