chk_updated_cfg_files: don't display ._cfg0000_
authorZac Medico <zmedico@gentoo.org>
Tue, 22 Feb 2011 02:59:24 +0000 (18:59 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 22 Feb 2011 03:13:51 +0000 (19:13 -0800)
pym/_emerge/actions.py

index 616995042d0a722269de4e3179707ea8afeb8c20..82cacdb4e2aad2cb29e72bb6847e545f80301968 100644 (file)
@@ -2927,7 +2927,10 @@ def chk_updated_cfg_files(eroot, config_protect):
                                level=logging.INFO, noiselevel=-1)
                else: # it's a protected dir
                        if len(x[1]) == 1:
-                               writemsg_level("config file '%s' needs updating.\n" % x[1][0],
+                               head, tail = os.path.split(x[1][0])
+                               tail = tail[len("._cfg0000_"):]
+                               fpath = os.path.join(head, tail)
+                               writemsg_level("config file '%s' needs updating.\n" % fpath,
                                        level=logging.INFO, noiselevel=-1)
                        else:
                                writemsg_level("%d config files in '%s' need updating.\n" % \