mirror of
				https://github.com/kewlfft/ansible-aur.git
				synced 2025-11-04 18:12:30 +03:00 
			
		
		
		
	makepkg: Check for "fakeroot" binary
This commit is contained in:
		
							
								
								
									
										1
									
								
								aur.py
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								aur.py
									
									
									
									
									
								
							@@ -125,6 +125,7 @@ def install_with_makepkg(module, package):
 | 
				
			|||||||
    """
 | 
					    """
 | 
				
			||||||
    Install the specified package with makepkg
 | 
					    Install the specified package with makepkg
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
 | 
					    module.get_bin_path('fakeroot', required=True)
 | 
				
			||||||
    f = open_url('https://aur.archlinux.org/rpc/?v=5&type=info&arg={}'.format(package))
 | 
					    f = open_url('https://aur.archlinux.org/rpc/?v=5&type=info&arg={}'.format(package))
 | 
				
			||||||
    result = json.loads(f.read().decode('utf8'))
 | 
					    result = json.loads(f.read().decode('utf8'))
 | 
				
			||||||
    if result['resultcount'] != 1:
 | 
					    if result['resultcount'] != 1:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user