fix typecheck, add reference in bump-unversioned-casks
This commit is contained in:
		
							parent
							
								
									24c975f150
								
							
						
					
					
						commit
						212992a476
					
				@ -91,7 +91,7 @@ module Homebrew
 | 
			
		||||
 | 
			
		||||
    unversioned_cask_checker = UnversionedCaskChecker.new(cask)
 | 
			
		||||
 | 
			
		||||
    if !unversioned_cask_checker.single_app_cask? && !unversioned_cask_checker.single_pkg_cask?
 | 
			
		||||
    if !unversioned_cask_checker.single_app_cask? && !unversioned_cask_checker.single_pkg_cask? && !unversioned_cask_checker.single_qlplugin_cask?
 | 
			
		||||
      opoo "Skipping, not a single-app or PKG cask."
 | 
			
		||||
      return
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,11 @@ module Homebrew
 | 
			
		||||
      apps.count == 1
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    sig { returns(T::Boolean) }
 | 
			
		||||
    def single_qlplugin_cask?
 | 
			
		||||
      qlplugins.count == 1
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    sig { returns(T::Boolean) }
 | 
			
		||||
    def single_pkg_cask?
 | 
			
		||||
      pkgs.count == 1
 | 
			
		||||
@ -83,8 +88,8 @@ module Homebrew
 | 
			
		||||
 | 
			
		||||
        installer.extract_primary_container(to: dir)
 | 
			
		||||
 | 
			
		||||
        info_plist_paths = (apps + qlplugins).flat_map do |app|
 | 
			
		||||
          top_level_info_plists(Pathname.glob(dir/"**"/app.source.basename/"Contents"/"Info.plist")).sort
 | 
			
		||||
        info_plist_paths = (apps.concat(qlplugins)).flat_map do |artifact|
 | 
			
		||||
          top_level_info_plists(Pathname.glob(dir/"**"/artifact.source.basename/"Contents"/"Info.plist")).sort
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        info_plist_paths.each(&parse_info_plist)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user