Hi Andreas,

just to clarify a point,

do you mean I should have set versioning on 2.5 as 2.5.0 ? 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 ?

Best regards,

Guillaume Bougard 
Teclib' Edition 


----- Mail original -----
De: "Andreas Koenig" <[email protected]>
À: "Guillaume Bougard" <[email protected]>
Cc: [email protected]
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 
>>>>> <[email protected]> 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

Reply via email to