Read system remotes from /etc/xdg-app/remotes.d/*.conf

This commit is contained in:
Alexander Larsson committed 2016-04-21 18:47:11 +02:00
1 parent 3383eefc82
commit 351c2d5bd2
2 files changed
+7 -1

No files matched your search

+1
View File
@@ -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)\" \
+6 -1
View File
@@ -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))
{