forked from Mirrors/flatpak-builder
Read system remotes from /etc/xdg-app/remotes.d/*.conf
parent
3383eefc82
commit
351c2d5bd2
|
@ -28,6 +28,7 @@ XDG_APP_BINDIR=$(bindir)
|
|||
AM_CPPFLAGS = \
|
||||
-DXDG_APP_BINDIR=\"$(XDG_APP_BINDIR)\" \
|
||||
-DXDG_APP_SYSTEMDIR=\"$(localstatedir)/lib/xdg-app\"\
|
||||
-DXDG_APP_CONFIGDIR=\"$(sysconfdir)/xdg-app\"\
|
||||
-DXDG_APP_BASEDIR=\"$(pkgdatadir)\" \
|
||||
-DXDG_APP_TRIGGERDIR=\"$(pkgdatadir)/triggers\" \
|
||||
-DSYSTEM_FONTS_DIR=\"$(SYSTEM_FONTS_DIR)\" \
|
||||
|
|
|
@ -625,7 +625,12 @@ xdg_app_dir_ensure_repo (XdgAppDir *self,
|
|||
goto out;
|
||||
|
||||
repodir = g_file_get_child (self->basedir, "repo");
|
||||
repo = ostree_repo_new (repodir);
|
||||
if (self->user)
|
||||
repo = ostree_repo_new (repodir);
|
||||
else
|
||||
repo = g_object_new (OSTREE_TYPE_REPO, "path", repodir,
|
||||
"remotes-config-dir", XDG_APP_CONFIGDIR "/remotes.d",
|
||||
NULL);
|
||||
|
||||
if (!g_file_query_exists (repodir, cancellable))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue