fix setup

Signed-off-by: Mattias Andrée <maandree@operamail.com>
This commit is contained in:
Mattias Andrée 2015-09-14 20:23:17 +02:00
parent e0a2db3247
commit 5f6d97338c

View file

@ -621,7 +621,8 @@ class Setup():
src = 'ponysay.info' + ext src = 'ponysay.info' + ext
for command in commands: for command in commands:
if conf[command] is not None: if conf[command] is not None:
dests.append(conf['info'] + '/' + command + '.info' + ext) dest = conf['info'] + '/' + command + '.info' + ext
dests.append(dest)
if conf['info-install'] is not None: if conf['info-install'] is not None:
cmdarr = ['install-info', '--entry=Miscellaneous', '--description=' + conf['info-install'], '--dir-file=' + conf['info'] + '/dir', dest] cmdarr = ['install-info', '--entry=Miscellaneous', '--description=' + conf['info-install'], '--dir-file=' + conf['info'] + '/dir', dest]
cmd = ' '.join(['\'%s\'' % (elem.replace('\'', '\'\\\'\'')) for elem in cmdarr]) cmd = ' '.join(['\'%s\'' % (elem.replace('\'', '\'\\\'\'')) for elem in cmdarr])