public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jason Stubbs <jstubbs@gentoo.org>
To: gentoo-portage-dev@lists.gentoo.org
Subject: [gentoo-portage-dev] [PATCH] Ignore system packages that are in package.provided
Date: Tue, 27 Sep 2005 15:02:00 +0900	[thread overview]
Message-ID: <200509271502.00662.jstubbs@gentoo.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]

Removes any atoms that are satisfied by package.provided in emerge's getlist() 
function.

[-- Attachment #2: ignore-pprovided-system-packages.patch --]
[-- Type: text/x-diff, Size: 721 bytes --]

diff -uNr 2.0/bin/emerge 2.0-patched/bin/emerge
--- 2.0/bin/emerge	2005-09-27 13:16:09.000000000 +0900
+++ 2.0-patched/bin/emerge	2005-09-27 15:00:23.000000000 +0900
@@ -861,6 +861,16 @@
 				continue
 			myline=myline[1:]
 		mynewlines.append(myline.strip())
+
+	# Remove everything that is package.provided from our list
+	for atom in mynewlines[:]:
+		for expanded_atom in portage.flatten(portage.dep_virtual([atom], portage.settings)):
+			mykey = portage.dep_getkey(expanded_atom)
+			if portage.settings.pprovideddict.has_key(mykey) and \
+				portage.match_from_list(expanded_atom, portage.settings.pprovideddict[mykey]):
+					mynewlines.remove(atom)
+					break
+
 	return mynewlines
 
 def genericdict(mylist):

                 reply	other threads:[~2005-09-27  6:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200509271502.00662.jstubbs@gentoo.org \
    --to=jstubbs@gentoo.org \
    --cc=gentoo-portage-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox