Commit d3782636 authored by PJ Eby's avatar PJ Eby

Add informative comment when uploading eggs, to help distinguish them from

source archives.

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041104
parent db0f5234
......@@ -75,8 +75,10 @@ class upload(Command):
basename = os.path.basename(filename)
if basename.endswith('.egg'):
basename += '.zip'
comment = ''
if command=='bdist_egg':
command='sdist'
comment='Binary egg for use with setuptools'
data = {
':action':'file_upload',
'protcol_version':'1',
......@@ -87,7 +89,6 @@ class upload(Command):
'pyversion':pyversion,
'md5_digest':md5(content).hexdigest(),
}
comment = ''
if command == 'bdist_rpm':
dist, version, id = platform.dist()
if dist:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment