Modified:
trunk/upload/upload.py
Log:
Minor improvements to upload script
Modified: trunk/upload/upload.py
==============================================================================
--- trunk/upload/upload.py (original)
+++ trunk/upload/upload.py Thu Jun 5 02:25:09 2008
@@ -16,6 +16,7 @@
if __name__ == '__main__':
password = open(os.path.expanduser('~/.googlecode-passwd')).read().strip()
+ version = open(os.path.join(base, '..', 'VERSION')).read().strip()
descriptions = {}
for line in open(os.path.join(base, 'descriptions.txt')):
@@ -24,6 +25,10 @@
files = {}
for filename in os.listdir(dist):
+ if not os.path.isfile(os.path.join(dist, filename)):
+ continue
+ if version not in filename:
+ continue
for prefix in descriptions:
if filename.startswith(prefix):
description = descriptions[prefix]