Project

General

Profile

« Previous | Next » 

Revision 7560679b

Added by Daniel Lobato Garcia over 9 years ago

Fixes #6884 - Installation media without $minor generate broken $version

$version is generated with the major version and a dot, producing paths
like foo.bar/x64/7. which don't exist. For CentOS at least we want to generate
a path without the dot. The default values for these media have been changed too.

View differences:

app/models/operatingsystem.rb
path.gsub('$arch', arch).
gsub('$major', os.major).
gsub('$minor', os.minor).
gsub('$version', [os.major, os.minor ].compact.join('.')).
gsub('$release', os.release_name ? os.release_name : "" )
gsub('$version', os.minor.blank? ? os.major : [os.major, os.minor].compact.join('.')).
gsub('$release', os.release_name.blank? ? '' : os.release_name)
end
# The OS is usually represented as the concatenation of the OS and the revision

Also available in: Unified diff