Print [${old_version}::${old_repository}] in output of `emerge -pv ${package}`
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sun, 22 Jan 2012 03:43:03 +0000 (04:43 +0100)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sun, 22 Jan 2012 03:43:03 +0000 (04:43 +0100)
when ${old_version} is the same as ${new_version}, but ${old_repository} is
different than ${new_repository}.

pym/_emerge/resolver/output.py

index 15f922508c0e6ececc750793f25dc8916aadc98b..c9124438ac0ada874ca272c4353014eefa30e0cf 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2010-2011 Gentoo Foundation
+# Copyright 2010-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 """Resolver output display operation.
@@ -757,6 +757,8 @@ class Display(object):
                installed_versions = self.vardb.match_pkgs(pkg.cp)
                if self.vardb.cpv_exists(pkg.cpv):
                        addl = "  "+yellow("R")+pkg_info.fetch_symbol+"  "
+                       if not self.quiet_repo_display and installed_versions[0].repo != pkg.repo:
+                               myoldbest = installed_versions
                        if pkg_info.ordered:
                                if pkg_info.merge:
                                        self.counters.reinst += 1