Gentoo Archives: gentoo-portage-dev

From: Jason Stubbs <jstubbs@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] PATCH: Bumping portage to top of dependancy list (bug 48531)
Date: Tue, 18 Oct 2005 10:31:46
Message-Id: 200510181932.26513.jstubbs@gentoo.org
In Reply to: [gentoo-portage-dev] PATCH: Bumping portage to top of dependancy list (bug 48531) by Zac Medico
1 On Tuesday 18 October 2005 16:49, Zac Medico wrote:
2 > http://bugs.gentoo.org/show_bug.cgi?id=48531
3 >
4 > This simple patch automatically bumps portage to the top of the merge list.
5 > I've always wanted this feature and it is a dependency of bug 108262.
6 > Feedback please. :)
7
8 No good. ;)
9
10 What if portage's dependencies aren't satisfied? Something like the below
11 (possibly combined with the pprovided stuff) would be better...
12
13 --- emerge (revision 2138)
14 +++ emerge (working copy)
15 @@ -875,8 +875,15 @@
16 mynewlines.remove(atom)
17 break
18
19 - return mynewlines
20 + mynewlist = []
21 + for atom in mynewlines:
22 + if portage.dep_getkey(atom) == "sys-apps/portage":
23 + mynewlist.insert(0, atom)
24 + else:
25 + mynewlist.append(atom)
26
27 + return mynewlist
28 +
29 def genericdict(mylist):
30 mynewdict={}
31 for x in mylist:
32 --
33 gentoo-portage-dev@g.o mailing list

Replies