Gentoo Archives: gentoo-portage-dev

From: Mikey <mikey@×××××××××××.com>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Re: Plausible idea for GLEP 19?
Date: Mon, 23 Jan 2006 19:02:53
Message-Id: 200601231259.21955.mikey@badpenguins.com
In Reply to: Re: [gentoo-portage-dev] Re: Plausible idea for GLEP 19? by Marius Mauch
1 On Monday 23 January 2006 12:46, Marius Mauch spammed:
2
3 > > That is _exactly_ how it is intended to work. "Normal" users will
4 > > get A-1.1 when they run emerge -u. Users with a need for stability
5 > > will only see A-1.0-s1, and only if it is available for A-1.0.
6 >
7 > And for that you have to hack the resolver so it only sees your -sX
8 > updates.
9
10 Um, nope.
11
12 + if myaction=="glsa-only":
13 + pkglist = mydepgraph.altlistglsa()
14
15 Leads to:
16
17 + def altlistglsa(self):
18 + retlist=[]
19 + for y in self.altlist():
20 ^^^^^^^^^^^^^^^^^^^^^^^
21 + psplit=portage.pkgsplit(y[2])
22 + myrev=psplit[-1]
23 + myrevtype=myrev[0]
24 + if myrevtype=="s":
25 + retlist.append(y)
26 + return retlist
27 +
28
29 No touching the resolver, only filter output. The filter code is not
30 complete yet - I still need to compare current version -vs- new version.
31
32 The only other place I am touching anything is pkgsplit in portage.py:
33
34 - if len(myrev) and myrev[0]=="r":
35 + if len(myrev) and myrev[0] in ["r","s"]: