aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/migrator.rb
AgeCommit message (Collapse)Author
2016-11-03Correct a few typosMandar Gokhale
...and update man pages where applicable
2016-10-01Add `Formatter` module.Markus Reiter
2016-10-01Refactor Tty.Markus Reiter
2016-09-24RuboCop: Style/AccessorMethodNameMarkus Reiter
2016-09-24Fix Style/GuardClause.Markus Reiter
2016-09-23Fix Style/IfUnlessModifier.Markus Reiter
2016-09-17rubocop --auto-correct all hash-rocket usage.Mike McQuaid
2016-09-17rubocop --auto-correct all remaining files.Mike McQuaid
But remove some manual `.freeze`s on constants that shouldn't be constants.
2016-09-15Use constants for LinkedKegs/PinnedKegs/Locks.Mike McQuaid
These definitions are scattered throughout the codebase which makes it hard to refactor them later (my goal is to move them outside of HOMEBREW_LIBRARY). Unify their definitions for clearer code and easier movement later.
2016-03-08migrator: use Tap#core_tap?Xu Cheng
2016-02-26various: use Tap abstractionXu Cheng
formula_rename and tap_migrations are now handled inside Tap. Closes Homebrew/homebrew#49549. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-12-09migrator: tap is a Tap object nowXu Cheng
2015-12-03centralize the logic of handling `homebrew-` in Tap.fetchXu Cheng
Closes Homebrew/homebrew#46537. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-25migrator: link Cellar and opt before the keg.Mike McQuaid
When there's absolute symlinks in a linked directory in the `keg` (e.g. `bin`)that point to the `Cellar` or `opt` then linking the `keg` will fail before the `Cellar` or `opt` has been linked. Closes Homebrew/homebrew#44306. Closes Homebrew/homebrew#44329. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-03fix style problems in migratorVlad Shablinsky
Closes Homebrew/homebrew#43473. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-24migrator: #each.map is redundantMisty De Meo
2015-08-20migrator: skip check for same taps if --forceVlad Shablinsky
2015-08-20lock keg during migrationXu Cheng
2015-08-15migrator: better exception printingXu Cheng
2015-08-15migrator: don't use installed_prefixVlad Shablinsky
Link the keg that was linked before migration. Don't use newformula.installed_prefix to detect keg to link, because it can break things (i.e. if intalled formula is outdated, then newformula.installed_prefix can be not the same as installed prefix before update). Closes Homebrew/homebrew#42857. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-15migrator: don't link newname if oldname isn't linkedVlad Shablinsky
- link newname only if oldname used to be linked - optlink newname only if oldname used to be optlinked.
2015-08-15migrator: check if old_opt_record exist before using realpathVlad Shablinsky
- check if old_opt_record exist before using realpath - don’t check old_opt_record.exist? in link_old_opt because it doesn’t have to exist.
2015-08-14outdated: check if formula needs to be migrated.Mike McQuaid
Closes Homebrew/homebrew#42938.
2015-08-10update tabs only if core formula installedVlad Shablinsky
Closes Homebrew/homebrew#42745. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-10add migrator class for migrating renamed formulaeVlad Shablinsky