unmerge: don't show null/ cat in unmatched atoms
authorZac Medico <zmedico@gentoo.org>
Fri, 18 Feb 2011 15:15:15 +0000 (07:15 -0800)
committerZac Medico <zmedico@gentoo.org>
Sun, 20 Feb 2011 00:02:11 +0000 (16:02 -0800)
This will fix bug #269534.

pym/_emerge/unmerge.py

index e1d400f81589b1d7297beec4b525271140637c88..df95f699affe54ad4102067bf7b1d22920d4a089 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 from __future__ import print_function
@@ -186,7 +186,7 @@ def unmerge(root_config, myopts, unmerge_action,
                                mymatch = localtree.dep_match(x)
                        if not mymatch:
                                portage.writemsg("\n--- Couldn't find '%s' to %s.\n" % \
-                                       (x, unmerge_action), noiselevel=-1)
+                                       (x.replace("null/", ""), unmerge_action), noiselevel=-1)
                                continue
 
                        pkgmap.append(