This commit is contained in:
Kovid Goyal 2012-09-21 13:00:44 +05:30
parent 2819ae3b16
commit 1895402bee
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ class GoogleCode(Base):# {{{
typ = 'Type-' + ('Source' if fname.endswith('.xz') else 'Archive' if typ = 'Type-' + ('Source' if fname.endswith('.xz') else 'Archive' if
fname.endswith('.zip') else 'Installer') fname.endswith('.zip') else 'Installer')
ext = os.path.splitext(fname)[1][1:] ext = os.path.splitext(fname)[1][1:]
op = 'OpSys-'+{'msi':'Windows','zip':'Windows', op = 'OpSys-'+{'msi':'Windows','exe':'Windows',
'dmg':'OSX','bz2':'Linux','xz':'All'}[ext] 'dmg':'OSX','bz2':'Linux','xz':'All'}[ext]
desc = self.files[fname] desc = self.files[fname]
start = time.time() start = time.time()

View File

@ -43,7 +43,7 @@ def installer_description(fname):
return 'Windows installer' return 'Windows installer'
if fname.endswith('.dmg'): if fname.endswith('.dmg'):
return 'OS X dmg' return 'OS X dmg'
if fname.endswith('.zip'): if fname.endswith('.exe'):
return 'Calibre Portable' return 'Calibre Portable'
return 'Unknown file' return 'Unknown file'