Avoid usage of global variables like apk_flags
Hello,
it seems like apk_flags currently is required for some things (e.g. to allow untrusted repos to be used during add
), which is a bit awkward when using libapk - it would be nice if there were parameters for that.