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

Bug 589506

Summary: net-print/cups: use of REPLACING_VERSIONS does not account for multiple values
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: QA Keywords: QAcanfix
Priority: Normal    
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:57:47 UTC
See the tracker bug.

  if [[ "${REPLACING_VERSIONS}" ]] && [[ "${REPLACING_VERSIONS}" < "1.6" ]]; then

This doesn't account for RV having >1 value. Furthermore, you are using lexicographical string comparison on numbers, so 10 < 1.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2017-02-17 21:11:14 UTC
Fixed in cups-2.2.2-r2 and later