* Support base-32 hash representations.
This commit is contained in:
		
							parent
							
								
									c815aff21b
								
							
						
					
					
						commit
						f9848d4f31
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -132,9 +132,13 @@ static void opPrintFixedPath(Strings opFlags, Strings opArgs) | ||||||
|     string hash = *i++; |     string hash = *i++; | ||||||
|     string name = *i++; |     string name = *i++; | ||||||
| 
 | 
 | ||||||
|  |     HashType ht(parseHashType(hashAlgo)); | ||||||
|  |     Hash h = hash.size() == Hash(ht).hashSize * 2 | ||||||
|  |         ? parseHash(ht, hash) | ||||||
|  |         : parseHash32(ht, hash); | ||||||
|  |      | ||||||
|     cout << format("%1%\n") % |     cout << format("%1%\n") % | ||||||
|         makeFixedOutputPath(recursive, hashAlgo, |         makeFixedOutputPath(recursive, hashAlgo, h, name); | ||||||
|             parseHash(parseHashType(hashAlgo), hash), name); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue