When merging a package from an overlay, append 'from $repository' to the
authorZac Medico <zmedico@gentoo.org>
Mon, 12 Jan 2009 08:20:47 +0000 (08:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 12 Jan 2009 08:20:47 +0000 (08:20 -0000)
'>>> Emerging' message (where $repository is the repo_name of the source
repository). Thanks to Jeroen Roovers <jer@g.o> for the suggestion.
(trunk r12403)

svn path=/main/branches/2.1.6/; revision=12463

pym/_emerge/__init__.py

index dbdd64600801d7e499083ee5bfa0fd3345c9268c..c6a9323ea30b904099eb5c6f6118be301a77f241 100644 (file)
@@ -3730,6 +3730,15 @@ class MergeListItem(CompositeTask):
                        colorize("MERGE_LIST_PROGRESS", str(pkg_count.maxval)),
                        colorize("GOOD", pkg.cpv))
 
+               portdb = pkg.root_config.trees["porttree"].dbapi
+               portdir_repo_name = portdb._repository_map.get(portdb.porttree_root)
+               if portdir_repo_name:
+                       pkg_repo_name = pkg.metadata["repository"]
+                       if pkg_repo_name != portdir_repo_name:
+                               if not pkg_repo_name:
+                                       pkg_repo_name = "unknown repo"
+                               msg += " from %s" % pkg_repo_name
+
                if pkg.root != "/":
                        msg += " %s %s" % (preposition, pkg.root)