Re: pg12b1 and version sorting

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>
Cc: pgsql-pkg-yum(at)postgresql(dot)org
Subject: Re: pg12b1 and version sorting
Date: 2020-04-08 15:47:31
Message-ID: 20200408154731.GC2228@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)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(at)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(at)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

In response to

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim Gündüz 2020-04-08 23:24:29 Re: pg12b1 and version sorting
Previous Message Devrim Gündüz 2020-04-08 01:29:13 Announcing "common" YUM repository