Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 589458

Summary: dev-db/mongodb: use of REPLACING_VERSIONS does not account for multiple values
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Lujeni <julien>
Status: RESOLVED FIXED    
Severity: QA CC: proxy-maint, ultrabug
Priority: Normal Keywords: QAcanfix
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 589444    

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-07-23 12:16:41 UTC
See the tracker bug.

  if [[ ${REPLACING_VERSIONS} < 2.6 ]]; then

1. This does not account for empty RV and RV >1 value.

2. < is lexicographical string comparison, so 10.0 < 2.6 will be true.
Comment 1 Ultrabug gentoo-dev 2016-08-19 13:02:05 UTC
Thank you Michał, I learnt something new today :)

All is fixed in tree now !