outdated: update error for different taps
Closes Homebrew/homebrew#43269. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
		
							parent
							
								
									b68562d941
								
							
						
					
					
						commit
						fc445d97d3
					
				@ -18,8 +18,10 @@ module Homebrew
 | 
			
		||||
      all_versions = []
 | 
			
		||||
      older_or_same_tap_versions = []
 | 
			
		||||
 | 
			
		||||
      if f.oldname && !f.rack.exist? && (HOMEBREW_CELLAR/f.oldname).exist?
 | 
			
		||||
        raise Migrator::MigrationNeededError.new(f)
 | 
			
		||||
      if f.oldname && !f.rack.exist? && (dir = HOMEBREW_CELLAR/f.oldname).exist?
 | 
			
		||||
        if f.tap == Tab.for_keg(dir.subdirs.first).tap
 | 
			
		||||
          raise Migrator::MigrationNeededError.new(f)
 | 
			
		||||
        end
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      f.rack.subdirs.each do |dir|
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user