From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BFB0113877A for ; Sat, 14 Jun 2014 22:18:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2D399E07E6; Sat, 14 Jun 2014 22:18:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9579CE0729 for ; Sat, 14 Jun 2014 22:18:54 +0000 (UTC) Received: from big_daddy.dol-sen.ca (S010600222de111ff.vc.shawcable.net [96.49.5.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dolsen) by smtp.gentoo.org (Postfix) with ESMTPSA id 5D8C533FF23 for ; Sat, 14 Jun 2014 22:18:53 +0000 (UTC) Date: Sat, 14 Jun 2014 15:18:34 -0700 From: Brian Dolbec To: gentoo-portage-dev@lists.gentoo.org Subject: Re: [gentoo-portage-dev] [PATCH] Prepend '=' to unmerge atoms (bug 512578) Message-ID: <20140614151834.50ee7ac9.dolsen@gentoo.org> In-Reply-To: <1402597112-16633-1-git-send-email-bernalex@gentoo.org> References: <1402597112-16633-1-git-send-email-bernalex@gentoo.org> Organization: Gentoo Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: e16e37b8-b169-4914-9a43-96290906ced3 X-Archives-Hash: 8363b21f015cda35c70d1f7e26a2b5cf On Thu, 12 Jun 2014 20:18:32 +0200 Alexander Berntsen wrote: > Signed-off-by: Alexander Berntsen > --- > Apparently the list is back up. > > This patch makes it easier to e.g. copypaste atoms into > /var/lib/portage/world or whatever. > > I might, following a suggestion from Seb, restrict the atom parser so > that unmerge does not accept atoms with version numbers but without > '='. > > pym/_emerge/unmerge.py | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/pym/_emerge/unmerge.py b/pym/_emerge/unmerge.py > index b04f8f3..d359c08 100644 > --- a/pym/_emerge/unmerge.py > +++ b/pym/_emerge/unmerge.py > @@ -488,7 +488,8 @@ def _unmerge_display(root_config, myopts, > unmerge_action, if quiet: > writemsg_level("\n", noiselevel=-1) > > - writemsg_level("\nAll selected packages: %s\n" % " > ".join(all_selected), noiselevel=-1) > + writemsg_level("\nAll selected packages: =%s\n" % > + " =".join(all_selected), > noiselevel=-1) > writemsg_level("\n>>> " + colorize("UNMERGE_WARN", > "'Selected'") + \ " packages are slated for removal.\n") email test... Already discussed on IRC. -- Brian Dolbec