From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 17 Dec 2006 19:09:33 +0300 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20061217160933.GE6148@localhost.localdomain> Mail-Followup-To: ALT Devel discussion list References: <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> <20061217141414.GD6148@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yRA+Bmk8aPhU85Qt" Content-Disposition: inline In-Reply-To: <20061217141414.GD6148@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 16:09:48 -0000 Archived-At: List-Archive: List-Post: --yRA+Bmk8aPhU85Qt Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 17, 2006 at 05:14:14PM +0300, Alexey Tourbin wrote: > On Sun, Dec 17, 2006 at 04:43:40PM +0300, Alexey Tourbin wrote: > > +static inline bool > > +vercmpOrder(const pkgCache::VerIterator &a, const pkgCache::VerIterato= r &b) > > +{ > > + return a.CompareVer(b) < 0; > > +} >=20 > =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=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4=CF=DE=CE=CF =DA=CE=C1=C5=D4? > > +done: > > + // best versions go first > > + found.sort(vercmpOrder); > > + found.unique(); > > + found.reverse(); > > + return found; > > +} --yRA+Bmk8aPhU85Qt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFhWu9fBKgtDjnu0YRAtOvAJ9x8CM5XEHeeOkfvgX8Nx6H47oiJwCfb34Y Z8e73SpoWp/mIJjKVasSmgg= =MQtC -----END PGP SIGNATURE----- --yRA+Bmk8aPhU85Qt--