From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 17 Dec 2006 17:14:14 +0300 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20061217141414.GD6148@localhost.localdomain> Mail-Followup-To: ALT Devel discussion list References: <20061009224152.GC18762@basalt.office.altlinux.org> <20061010004028.GH23308@localhost.localdomain> <20061010153903.GA14460@basalt.office.altlinux.org> <20061010155251.GF8008@localhost.localdomain> <20061010221127.GB26619@basalt.office.altlinux.org> <20061011001636.GQ8008@localhost.localdomain> <20061207225233.GA14226@nomad.office.altlinux.org> <20061214234038.GH13476@localhost.localdomain> <20061215012503.GK13476@localhost.localdomain> <20061217134340.GA6148@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OZkY3AIuv2LYvjdk" Content-Disposition: inline In-Reply-To: <20061217134340.GA6148@localhost.localdomain> Subject: Re: [devel] [PATCH] apt virtual packages X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Dec 2006 14:14:13 -0000 Archived-At: List-Archive: List-Post: --OZkY3AIuv2LYvjdk Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 17, 2006 at 04:43:40PM +0300, Alexey Tourbin wrote: > +static inline bool > +vercmpOrder(const pkgCache::VerIterator &a, const pkgCache::VerIterator = &b) > +{ > + return a.CompareVer(b) < 0; > +} =EB=D3=D4=C1=D4=C9 =D7=CF=D4 =D4=D5=D4 =C4=CF=CC=D6=CE=CF =C2=D9=D4=D8 "<" = =C9=CC=C9 "<=3D"? =FE=D4=CF-=D4=CF =D5 =F3=D4=D2=C1=D5=D3=C1 =D0=D2=C9=CD=C5=D2=C1 =CE=C1 =D3= =CF=D2=D4=C9=D2=CF=D7=CB=D5 =D3 =D0=D2=C5=C4=C9=CB=C1=D4=CF=CD =D0=CF=D2=D1= =C4=CB=C1 =CE=C5=D4=D5. > +done: > + // best versions go first > + found.sort(vercmpOrder); > + found.unique(); > + found.reverse(); > + return found; > +} --OZkY3AIuv2LYvjdk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFhVC2fBKgtDjnu0YRAvfsAKC13J7Pni3xAuy4wd7ehI+gA31TsQCcD+pd oHb9/+T6C892YbEZ5IRFNe0= =Vtyn -----END PGP SIGNATURE----- --OZkY3AIuv2LYvjdk--