mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2819ae3b16
commit
1895402bee
@ -164,7 +164,7 @@ class GoogleCode(Base):# {{{
|
||||
typ = 'Type-' + ('Source' if fname.endswith('.xz') else 'Archive' if
|
||||
fname.endswith('.zip') else 'Installer')
|
||||
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]
|
||||
desc = self.files[fname]
|
||||
start = time.time()
|
||||
|
@ -43,7 +43,7 @@ def installer_description(fname):
|
||||
return 'Windows installer'
|
||||
if fname.endswith('.dmg'):
|
||||
return 'OS X dmg'
|
||||
if fname.endswith('.zip'):
|
||||
if fname.endswith('.exe'):
|
||||
return 'Calibre Portable'
|
||||
return 'Unknown file'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user