build: support new abuild.conf path
abuild.conf got moved to /usr/share/abuild/default.conf and /etc/abuild.conf is now just for user-changes. Adjust configure_abuild() to append to /etc/abuild.conf if there is no line defining JOBS This should be backward compatible Signed-off-by: Caleb Connolly <kc@postmarketos.org> Tested-by: Oliver Smith <ollieparanoid@postmarketos.org> Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org>
This commit is contained in:
parent
ad7ec1635a
commit
53d572bc40
|
@ -152,7 +152,7 @@ def configure_abuild(args, suffix, verify=False):
|
|||
suffix)
|
||||
configure_abuild(args, suffix, True)
|
||||
return
|
||||
raise RuntimeError("Could not find " + prefix + " line in " + path)
|
||||
pmb.chroot.root(args, ["sed", "-i", f"$ a\\{prefix}{args.jobs}", "/etc/abuild.conf"], suffix)
|
||||
|
||||
|
||||
def configure_ccache(args, suffix="native", verify=False):
|
||||
|
|
Loading…
Reference in New Issue