Fix for python 2.4

This commit is contained in:
Kovid Goyal 2007-10-28 05:03:13 +00:00
parent 3a470f8eed
commit e11c3c2ef3

View File

@ -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: