[entropy.qa] beautify output of test_missing_runtime_libraries()

This commit is contained in:
Fabio Erculiani
2011-08-05 22:57:37 +02:00
parent 438e194470
commit 8b62b034fe

View File

@@ -540,11 +540,10 @@ class QAInterface(TextInterface, EntropyPluginStore):
if not silent:
self.output(
"%s %s: %s, ELF class: %s" % (
"[%s] %s %s: %s, ELF class: %s" % (
purple(repository_id),
teal(atom),
purple(
_("requires the following library")
),
purple(_("requires")),
brown(library),
elfclass,
),
@@ -580,6 +579,15 @@ class QAInterface(TextInterface, EntropyPluginStore):
header = darkred(" "),
)
if not silent:
if missing_sonames:
self.output("", level = "info", importance = 0)
else:
self.output(
_("no missing runtime libraries found"),
level = "info",
importance = 1)
return missing_sonames
def test_shared_objects(self, entropy_repository, broken_symbols = False,