Vlad Shablinsky
a29832484c
fix style problems in migrator
...
Closes Homebrew/homebrew#43473 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-03 13:58:25 +08:00
Misty De Meo
cb154116c5
migrator: #each.map is redundant
2015-08-24 19:36:24 -07:00
Vlad Shablinsky
896848dd87
migrator: skip check for same taps if --force
2015-08-20 19:55:35 +08:00
Xu Cheng
a628c15afd
lock keg during migration
2015-08-20 15:47:42 +08:00
Xu Cheng
48f260f674
migrator: better exception printing
2015-08-15 20:37:24 +08:00
Vlad Shablinsky
f83d418608
migrator: don't use installed_prefix
...
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-15 20:16:32 +08:00
Vlad Shablinsky
9736159c03
migrator: don't link newname if oldname isn't linked
...
- link newname only if oldname used to be linked
- optlink newname only if oldname used to be optlinked.
2015-08-15 20:16:31 +08:00
Vlad Shablinsky
2c1d8bcf65
migrator: check if old_opt_record exist before using realpath
...
- 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-15 20:16:31 +08:00
Mike McQuaid
49dce3e7ae
outdated: check if formula needs to be migrated.
...
Closes Homebrew/homebrew#42938 .
2015-08-14 15:18:45 +01:00
Vlad Shablinsky
f88f2b7054
update tabs only if core formula installed
...
Closes Homebrew/homebrew#42745 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-10 16:09:26 +01:00
Vlad Shablinsky
832c5875b0
add migrator class for migrating renamed formulae
2015-08-10 13:57:59 +01:00