Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589450 - app-backup/obnam: use of REPLACING_VERSIONS does not account for multiple values
Summary: app-backup/obnam: 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: Marc Schiffbauer
URL:
Whiteboard:
Keywords: QAcanfix
Depends on:
Blocks: 589444
  Show dependency tree
 
Reported: 2016-07-23 12:09 UTC by Michał Górny
Modified: 2016-12-18 03:01 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:09:50 UTC
See the tracker bug.

  if [[ $REPLACING_VERSIONS < "1.2" ]]; then

1. This misbehaves if REPLACING_VERSIONS is empty or has >1 value.

2. < is lexicographical string comparison, so e.g. 10 < 1 is true.
Comment 1 Marc Schiffbauer gentoo-dev 2016-12-18 03:01:37 UTC
Thanks for reporting. I removed the warnings, since version <1.2 is gone for a long time now