From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 17 Feb 2009 02:29:39 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20090216232939.GA11469@wo.int.altlinux.org> Mail-Followup-To: ALT Devel discussion list References: <20090216081651.GA15873@altlinux.org> <20090216122312.GK27664@wo.int.altlinux.org> <20090216130508.GL31985@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <20090216130508.GL31985@altlinux.org> X-fingerprint: FE4C 93AB E19A 2E4C CB5D 3E4E 7CAB E6AC 9E35 361E Subject: Re: [devel] gb-task-repo-vercheck (vercheck): Use rpmevrcmp X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 23:29:39 -0000 Archived-At: List-Archive: List-Post: --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 16, 2009 at 04:05:08PM +0300, Alexey Tourbin wrote: > On Mon, Feb 16, 2009 at 03:23:12PM +0300, Dmitry V. Levin wrote: > > On Mon, Feb 16, 2009 at 11:16:51AM +0300, Alexey Tourbin wrote: > > [...] > > > 0:1.0-alt1 cmp 1.0-alt2 should yield 1. > >=20 > > Why? > >=20 > > > Zero serial is greater than no serial. > >=20 > > Why? >=20 > This is because how rpm-4.0 works. >=20 > lib/psm.c: > 72 int rpmVersionCompare(Header first, Header second) If rpmVersionCompare() works this way, why rpmEVRcmp() doesn't work the same way? Let's fix librpm rather than multiply workarounds. --=20 ldv --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmZ9uIACgkQfKvmrJ41Nh4iyQCcDdKmKsTn+1ov8D94H38DayhU 5+AAn0SANfryZrIfHGOZZoc3zpvEXSsK =jt+b -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--