* [gentoo-portage-dev] [PATCH] Ignore system packages that are in package.provided
@ 2005-09-27 6:02 Jason Stubbs
0 siblings, 0 replies; only message in thread
From: Jason Stubbs @ 2005-09-27 6:02 UTC (permalink / raw
To: gentoo-portage-dev
[-- 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):
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-27 6:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-27 6:02 [gentoo-portage-dev] [PATCH] Ignore system packages that are in package.provided Jason Stubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox