From 988c68ba66a72774f69327b3cba10ef359137f56 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Fri, 18 May 2007 12:58:27 +0000 Subject: Add registration support for preserved library objects, move the library->consumer map code out of vardbapi and fix a bug in the setup code for preserve-libs and collision-protect caused by using relative paths with os.path.islink() svn path=/main/trunk/; revision=6545 --- pym/emerge/__init__.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'pym/emerge/__init__.py') diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 593944bd7..0d319d450 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -31,7 +31,7 @@ except ImportError: import portage del os.environ["PORTAGE_LEGACY_GLOBALS"] from portage import digraph, portdbapi -from portage.const import NEWS_LIB_PATH +from portage.const import NEWS_LIB_PATH, CACHE_PATH import emerge.help import portage.xpak, commands, errno, re, socket, time, types @@ -3782,6 +3782,19 @@ def post_emerge(settings, mtimedb, retval): print colorize("WARN", " *"), print "Use " + colorize("GOOD", "eselect news") + " to read news items." + from portage.dbapi.vartree import PreservedLibsRegistry + plib_registry = PreservedLibsRegistry(os.path.join(target_root, CACHE_PATH, "preserved_libs_registry")) + if plib_registry.hasEntries(): + print + print colorize("WARN", "!!!") + " existing preserved libs:" + plibdata = plib_registry.getPreservedLibs() + for cpv in plibdata.keys(): + print colorize("WARN", ">>>") + " package: %s" % cpv + for f in plibdata[cpv]: + print colorize("WARN", " * ") + " - %s" % f + print "Use " + colorize("GOOD", "revdep-rebuild") + " to rebuild packages using these libraries" + print "and then remerge the packages listed above." + mtimedb.commit() sys.exit(retval) -- cgit v1.2.3-1-g7c22