pmbootstrap index: Automatically set up abuild

This commit is contained in:
Oliver Smith 2017-06-08 18:19:17 +02:00
parent 50195a6af2
commit e55347315d
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 5 additions and 2 deletions

View File

@ -97,10 +97,13 @@ def is_necessary(args, suffix, carch, apkbuild):
return False
return True
# When arch is not defined, reindex all repos
def index_repo(args, arch=None):
"""
:param arch: when not defined, re-index all repos
"""
pmb.build.init(args)
if arch:
paths = [args.work + "/packages/" + arch]
else: