Thank you Andreas, this really helps. Best regards,
Guillaume Bougard Teclib' Edition ----- Mail original ----- De: "Andreas Koenig" <andreas.koenig.7os6v...@franz.ak.mind.de> À: "Guillaume Bougard" <gboug...@teclib.com> Cc: modules@perl.org Envoyé: Lundi 8 Juillet 2019 06:48:07 Objet: Re: Failed: PAUSE indexer report GBOUGARD/FusionInventory-Agent-2.5.1.tar.gz >>>>> On Fri, 5 Jul 2019 08:54:42 +0200 (CEST), Guillaume Bougard >>>>> <gboug...@teclib.com> said: > Hi Andreas, > just to clarify a point, > do you mean I should have set versioning on 2.5 as 2.5.0 ? Since your question was "What did I miss", I tried to provide an answer that might help, not suggest anything you *should do*. What I should have done: provide the obligatory links on the theme: http://www.dagolden.com/index.php/369/version-numbers-should-be-boring/ http://blogs.perl.org/users/grinnz/2018/04/a-guide-to-versions-in-perl.html The first one has the "should" already in the subject line. > As the > following gives the right order: perl -le 'print "ASCENDING: " . join > " ", sort { version->parse($a) <=> version->parse($b) } @ARGV' 2.5.0 > 2.5.1 > ASCENDING: 2.5.0 2.5.1 > Or do you mean "version->parse($a) <=> version->parse($b)" wrongly > handles this case ? No. I think, if the version module were incorrect in that line, I would have written a bug report against it. Regards, -- andreas > Best regards, > Guillaume Bougard > Teclib' Edition > ----- Mail original ----- > De: "Andreas Koenig" <andreas.koenig.7os6v...@franz.ak.mind.de> > À: "Guillaume Bougard" <gboug...@teclib.com> > Cc: modules@perl.org > Envoyé: Vendredi 5 Juillet 2019 08:03:06 > Objet: Re: Failed: PAUSE indexer report GBOUGARD/FusionInventory-Agent-2.5.1.tar.gz >>>>> On Tue, 2 Jul 2019 15:01:15 +0200 (CEST), Guillaume Bougard >>>>> <gboug...@teclib.com> said: >> Hi, >> that's weird the status is said "Decreasing version number" while it >> detects 2.5 for the old one and 2.5.1 for the new one. >> What did I miss ? > perl -le 'print "ASCENDING: " . join " ", sort { version->parse($a) <=> version->parse($b) } @ARGV' 2.5 2.5.1 > ASCENDING: 2.5.1 2.5 > -- > andreas