From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74859 invoked by alias); 20 Jul 2015 18:10:44 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 74849 invoked by uid 89); 20 Jul 2015 18:10:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: out1-smtp.messagingengine.com Received: from out1-smtp.messagingengine.com (HELO out1-smtp.messagingengine.com) (66.111.4.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 20 Jul 2015 18:10:41 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B44F820C58 for ; Mon, 20 Jul 2015 14:10:39 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Mon, 20 Jul 2015 14:10:39 -0400 Received: from [192.168.1.102] (host86-179-113-63.range86-179.btcentralplus.com [86.179.113.63]) by mail.messagingengine.com (Postfix) with ESMTPA id 606E168012D for ; Mon, 20 Jul 2015 14:10:39 -0400 (EDT) Subject: Re: upset, genini: different version ordering To: cygwin-apps@cygwin.com References: <87380i671e.fsf@Rainer.invalid> From: Jon TURNEY Message-ID: <55AD399D.7020001@dronecode.org.uk> Date: Mon, 20 Jul 2015 18:10:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <87380i671e.fsf@Rainer.invalid> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2015-07/txt/msg00140.txt.bz2 On 20/07/2015 19:03, Achim Gratz wrote: > > I've just found that upset and genini will order versions differently. > For perl-Carp, genini produces: > > version: 1.36-1 > [prev] > version: 1.3301-2 > > while upset comes up with: > > version: 1.3301-2 > [prev] > version: 1.36-1 > > For the way Perl distributions are versioned, genini is correct here > (although it would fail when a distribution switches from x.y.z > versioning to canonical x.y versioning as PDL has done in the past). > > Upset seems to order based on the individual parts in the split version > string? In any case, at least for Perl distributions it should rather > use version objects. > > http://search.cpan.org/~jpeacock/version-0.9912/lib/version.pod If I recall correctly, genini is just broken, doing some kind of lexical sort which e.g. sorts 1.10 before 1.9.