}
/*
- This function enables the local repository so that it can be access by
+ This function enables the local repository so that it can be accessed by
a pakfire instance running inside the chroot.
*/
static int pakfire_build_enable_repos(struct pakfire_build* build) {
}
// Bind-mount the repository data read-only
- r = pakfire_bind(build->pakfire, path, NULL, MS_RDONLY);
+ r = pakfire_jail_bind(build->jail, path, path, MS_RDONLY);
if (r) {
ERROR(build->pakfire, "Could not bind-mount the repository at %s: %m\n", path);
goto ERROR;