Merge pull request #16851 from boblail/lail/add-overwrite-flag-to-brew-upgrade
Add support for the `--overwrite` flag to `brew upgrade` to govern the keg-linking step
This commit is contained in:
		
						commit
						0a70e493dd
					
				@ -75,6 +75,9 @@ module Homebrew
 | 
			
		||||
          env:         :display_install_times,
 | 
			
		||||
          description: "Print install times for each package at the end of the run.",
 | 
			
		||||
        }],
 | 
			
		||||
        [:switch, "--overwrite", {
 | 
			
		||||
          description: "Delete files that already exist in the prefix while linking.",
 | 
			
		||||
        }],
 | 
			
		||||
      ].each do |args|
 | 
			
		||||
        options = args.pop
 | 
			
		||||
        send(*args, **options)
 | 
			
		||||
@ -229,6 +232,7 @@ module Homebrew
 | 
			
		||||
      keep_tmp:                   args.keep_tmp?,
 | 
			
		||||
      debug_symbols:              args.debug_symbols?,
 | 
			
		||||
      force:                      args.force?,
 | 
			
		||||
      overwrite:                  args.overwrite?,
 | 
			
		||||
      debug:                      args.debug?,
 | 
			
		||||
      quiet:                      args.quiet?,
 | 
			
		||||
      verbose:                    args.verbose?,
 | 
			
		||||
 | 
			
		||||
@ -27,6 +27,7 @@ module Homebrew
 | 
			
		||||
      keep_tmp: false,
 | 
			
		||||
      debug_symbols: false,
 | 
			
		||||
      force: false,
 | 
			
		||||
      overwrite: false,
 | 
			
		||||
      debug: false,
 | 
			
		||||
      quiet: false,
 | 
			
		||||
      verbose: false
 | 
			
		||||
@ -65,6 +66,7 @@ module Homebrew
 | 
			
		||||
            keep_tmp:,
 | 
			
		||||
            debug_symbols:,
 | 
			
		||||
            force:,
 | 
			
		||||
            overwrite:,
 | 
			
		||||
            debug:,
 | 
			
		||||
            quiet:,
 | 
			
		||||
            verbose:,
 | 
			
		||||
@ -150,6 +152,7 @@ module Homebrew
 | 
			
		||||
      keep_tmp: false,
 | 
			
		||||
      debug_symbols: false,
 | 
			
		||||
      force: false,
 | 
			
		||||
      overwrite: false,
 | 
			
		||||
      debug: false,
 | 
			
		||||
      quiet: false,
 | 
			
		||||
      verbose: false
 | 
			
		||||
@ -184,6 +187,7 @@ module Homebrew
 | 
			
		||||
          keep_tmp:,
 | 
			
		||||
          debug_symbols:,
 | 
			
		||||
          force:,
 | 
			
		||||
          overwrite:,
 | 
			
		||||
          debug:,
 | 
			
		||||
          quiet:,
 | 
			
		||||
          verbose:,
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user