Merge pull request #21 from juergenhoetzel/check-for-fakeroot

makepkg: Check for "fakeroot" binary
pull/23/head v0.23
kewl 2018-10-30 19:18:28 +00:00 committed by GitHub
commit eeca05b629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
aur.py
View File

@ -125,6 +125,7 @@ def install_with_makepkg(module, package):
"""
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))
result = json.loads(f.read().decode('utf8'))
if result['resultcount'] != 1: