-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve version related functions #215
Improve version related functions #215
Conversation
fcm make: new `required-version` declaration. fcm version: now displays FCM_HOME location, consistent with `rose version`.
e567ed9
to
a524c4c
Compare
@benfitzpatrick @scwhitehouse please review. |
Looks fine to me, passes the test battery. |
my ($min_version, $max_version) = shellwords($entry->get_value()); | ||
if ( $min_version gt $version | ||
|| defined($max_version) && $version gt $max_version | ||
) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to make sure I understand, is this doing a text comparison on the strings (rather than numeric, as 2015.12.0 isn't a number)? And if one value is set as require-version it's taken as a minimum, and if there are two the first is a minimum and the second is a maximum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That sounds about right. (Obviously, the numeric comparison will not work if we issue more than 10 formal releases in a single month, but I don't think we'll ever get to that for FCM.)
In which case this looks sensible to me |
Improve version related functions
fcm make: new
required-version
declaration.fcm version: now displays FCM_HOME location, consistent with
rose version
.Close #113.