From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sun, 1 Mar 2009 01:37:56 +0300 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20090228223756.GB22165@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> <20090216232939.GA11469@wo.int.altlinux.org> <20090228141725.GC9851@altlinux.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KFztAG8eRSV9hGtP" Content-Disposition: inline In-Reply-To: <20090228141725.GC9851@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: Sat, 28 Feb 2009 22:37:56 -0000 Archived-At: List-Archive: List-Post: --KFztAG8eRSV9hGtP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 28, 2009 at 05:17:25PM +0300, Alexey Tourbin wrote: > On Tue, Feb 17, 2009 at 02:29:39AM +0300, Dmitry V. Levin wrote: > > 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) > >=20 > > If rpmVersionCompare() works this way, why rpmEVRcmp() doesn't work the > > same way? >=20 > That's because rpmEVRcmp() is botched. Let's fix it, that should be easy change. --=20 ldv --KFztAG8eRSV9hGtP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmpvMQACgkQfKvmrJ41Nh7rcgCdFmAV1hJC2lt6fdhg1U4uo1N7 xTcAnAhmau/VjufC+K2VfS6eYbAbKwae =TCm+ -----END PGP SIGNATURE----- --KFztAG8eRSV9hGtP--