Skip to content
Snippets Groups Projects
  • Jack Nagel's avatar
    6008187d
    Encode formula revision in installation prefix · 6008187d
    Jack Nagel authored
    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.
    6008187d
    History
    Encode formula revision in installation prefix
    Jack Nagel authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.