Skip to content

db: use wrapper for apk_db_add_repository in callback

Sertonix requested to merge sertonix/apk-tools:union-parameter into master

Use a wrapper around apk_db_add_repository when it is passed to apk_db_add_repository. The previous approach using transparent_union is fragile cause it converts void* to struct apk_database* without a cast.

And as a side effect linking against libapk doesn't require transparent_union to be supported by the compiler.

Edited by Sertonix

Merge request reports

Loading