Re: pg12b1 and version sorting - Mailing list pgsql-pkg-yum

From Justin Pryzby
Subject Re: pg12b1 and version sorting
Date
Msg-id 20200408154731.GC2228@telsasoft.com
Whole thread Raw
In response to Re: pg12b1 and version sorting  (Devrim Gündüz <devrim@gunduz.org>)
Responses Re: pg12b1 and version sorting  (Devrim Gündüz <devrim@gunduz.org>)
List pgsql-pkg-yum
A reminder about this.
The versions should sort like:

nightly build < beta < rc < released

On Thu, Jun 06, 2019 at 11:15:58AM +0100, Devrim Gündüz wrote:
> 
> Hi,
> 
> Oops, I did it again :-( Let's review this once we start releasing 13 devel
> RPMs after summer.
> 
> Regards, Devrim
> 
> On Thu, 2019-05-23 at 09:55 -0500, Justin Pryzby wrote:
> > I'm wondering how versioning on PGDG RPMs is intended to work.
> > Yum seems to thinks that the "nightly builds" are of higher version number
> > than
> > beta.
> > 
> > [pryzbyj@dev ~]$ yum list --enablerepo='pgdg12-updates-testing' --showdu
> > postgresql12
> > ...
> > Installed Packages
> > postgresql12.x86_64                                                         1
> > 2.0-
> > 1devel_20190502_1PGDG.rhel7                                                  
> >        @pgdg12-updates-testing
> > Available Packages
> > postgresql12.x86_64                                                         1
> > 2beta1-
> > 1PGDG.rhel7                                                                  
> >    pgdg12-updates-testing 
> > 
> > [pryzbyj@dev ~]$ sudo yum --enablerepo=pgdg12-updates-testing install
> > postgresql12{-server,-debuginfo,-contrib} #12beta1-1PGDG.rhel7.x86_64
> > Package matching postgresql12-server-12beta1-1PGDG.rhel7.x86_64 already
> > installed. Checking for update.
> > Package matching postgresql12-debuginfo-12beta1-1PGDG.rhel7.x86_64 already
> > installed. Checking for update.
> > Package matching postgresql12-contrib-12beta1-1PGDG.rhel7.x86_64 already
> > installed. Checking for update.
> > Nothing to do
> > 
> > I made it work like this:
> > [pryzbyj@dev ~]$ sudo yum --enablerepo=pgdg12-updates-testing downgrade
> > postgresql12{,-libs,-server,-debuginfo,-contrib}-12beta1-1PGDG.rhel7.x86_64
> > 
> > ..which seems to prove that's what's going on.
> > 
> > I recall that debian handles that using "~", like 12~beta1.
> > 
> > At least, it should be called 12devel and 12beta1 for consistency?  Or
> > 12.0devel and 12.0beta1.
> > 
> > Justin
> > 
> > 
> 
> -- 
> Devrim Gündüz
> Open Source Solution Architect, Red Hat Certified Engineer
> Twitter: @DevrimGunduz , @DevrimGunduzTR



-- 
Justin Pryzby
System Administrator
Telsasoft
+1-952-707-8581



pgsql-pkg-yum by date:

Previous
From: Devrim Gündüz
Date:
Subject: Announcing "common" YUM repository
Next
From: Devrim Gündüz
Date:
Subject: Re: pg12b1 and version sorting