Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589506 - net-print/cups: use of REPLACING_VERSIONS does not account for multiple values
Summary: net-print/cups: use of REPLACING_VERSIONS does not account for multiple values
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal QA (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: QAcanfix
Depends on:
Blocks: 589444
  Show dependency tree
 
Reported: 2016-07-23 12:57 UTC by Michał Górny
Modified: 2017-02-17 21:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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