Fix hg strategy under stdenv
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
		
							parent
							
								
									7e6c274f81
								
							
						
					
					
						commit
						cc932ca668
					
				@ -459,11 +459,7 @@ class MercurialDownloadStrategy < AbstractDownloadStrategy
 | 
			
		||||
  def cached_location; @clone; end
 | 
			
		||||
 | 
			
		||||
  def hgpath
 | 
			
		||||
    @path ||= if which "hg"
 | 
			
		||||
      'hg'
 | 
			
		||||
    else
 | 
			
		||||
      "#{HOMEBREW_PREFIX}/bin/hg"
 | 
			
		||||
    end
 | 
			
		||||
    @path ||= (which "hg" || "#{HOMEBREW_PREFIX}/bin/hg")
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def fetch
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user