mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix for python 2.4
This commit is contained in:
parent
3a470f8eed
commit
e11c3c2ef3
@ -67,7 +67,8 @@ class Distribution(object):
|
||||
if os == 'debian':
|
||||
self.as_root = True
|
||||
else: self.AS_ROOT[index-2]
|
||||
prefix = '' if self.as_root else 'sudo '
|
||||
prefix = ''
|
||||
if not self.as_root: prefix = 'sudo '
|
||||
cmd = prefix + self.INSTALLERS[index-2]
|
||||
pre = ' \\\n '.ljust(len(cmd)+3)
|
||||
for dep in self.DEPENDENCIES:
|
||||
|
Loading…
x
Reference in New Issue
Block a user