aportgen: fix fork_alpine related error (!1815)

Make sure, that "args.fork_alpine" is always present. Otherwise,
pmbootstrap will fail if the aportgen code is called by anything but
"pmbootstrap aportgen". For example, when the user is adding a new
device during "pmbootstrap init".

Fixes: 54e51759ad ("aportgen: add feature to fork upstream packages")
This commit is contained in:
Oliver Smith 2019-09-18 20:59:14 +02:00
parent f853c0da20
commit 5a97c60256
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
2 changed files with 1 additions and 1 deletions

View File

@ -66,6 +66,7 @@ defaults = {
"config": os.path.expanduser("~") + "/.config/pmbootstrap.cfg",
"device": "samsung-i9100",
"extra_packages": "none",
"fork_alpine": False,
"hostname": "",
# A higher value is typically desired, but this can lead to VERY long open
# times on slower devices due to host systems being MUCH faster than the

View File

@ -35,7 +35,6 @@ def args(tmpdir, request):
sys.argv = ["pmbootstrap.py", "build", "-i", "device-testsuite-testdevice"]
args = pmb.parse.arguments()
args.log = args.work + "/log_testsuite.txt"
args.fork_alpine = False
pmb.helpers.logging.init(args)
request.addfinalizer(args.logfd.close)