Fix formats command

This commit is contained in:
Bastian Kleineidam 2010-02-21 16:04:09 +01:00
parent c08b69d9f3
commit 077275eb32
1 changed files with 4 additions and 4 deletions

View File

@ -177,11 +177,11 @@ def list_formats ():
for format in ArchiveFormats:
print format, "files:"
for command in ArchiveCommands:
program = find_archive_program(format, command)
if program:
try:
program = find_archive_program(format, command)
print " %8s: %s" % (command, program)
else:
print " %8s: NOT SUPPORTED"
except util.PatoolError:
print " %8s: - (not supported)" % command
return 0