aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/upgrade.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-05 20:12:51 -0600
committerJack Nagel2014-03-05 20:12:51 -0600
commitfbfc6dcffee5e182ade0f917ce3e6509578cc75f (patch)
tree52ca55c2b4fd961e8df07e12c089f498b5588163 /Library/Homebrew/cmd/upgrade.rb
parent1ad70245d1a79cc4c9c0415b65559282f25376fa (diff)
downloadhomebrew-fbfc6dcffee5e182ade0f917ce3e6509578cc75f.tar.bz2
Encode formula revision in installation prefix
In order to allow kegs built with the same version but differing formula revisions to coexist, we must encode the revision as part of the keg's name. This is necessary to actually perform an upgrade, as we cannot upgrade a keg in-place, and temporarily moving it pending the result of the upgrade is error-prone and potentially slow. To accomplish this, we introduce a new Formula#pkg_version method that concatenates the active_spec version with the formula revision. An exception is made for a formula that has no revision: the tag is omitted. This preserves compatibility with existing installations.
Diffstat (limited to 'Library/Homebrew/cmd/upgrade.rb')
0 files changed, 0 insertions, 0 deletions