[solo.commands.preservedlibs] inform user about libraries owned by packages in gc

This commit is contained in:
Fabio Erculiani
2013-11-27 17:27:39 +01:00
parent 9d733afefb
commit 7cd5228b3a
+18
View File
@@ -184,6 +184,9 @@ Tools to manage the preserved libraries currently stored on the system.
return 0
for library, elfclass, path in collectables:
package_ids = inst_repo.isFileAvailable(path, get_id = True)
entropy_client.output(
"%s [%s:%s]" % (
darkred(path),
@@ -191,6 +194,21 @@ Tools to manage the preserved libraries currently stored on the system.
teal(const_convert_to_unicode(elfclass)),
))
for package_id in package_ids:
atom = inst_repo.retrieveAtom(package_id)
if atom is None:
continue
entropy_client.output(
"%s: %s, %s" % (
blue(_("but owned by")),
darkgreen(atom),
blue(_("then just unregister the library")),
),
header=brown(" -> "),
importance=0
)
return 0