summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2016-04-21 18:47:11 +0200
committerAlexander Larsson <alexl@redhat.com>2016-04-21 18:47:11 +0200
commit351c2d5bd2e740dd5ef93c36550b4b99b8b2c113 (patch)
tree32cf2f41f9745afd8665632774cb77b7605e2d93 /common
parent3383eefc8244c14db921ed13cccd9bacdd615033 (diff)
downloadxdg-app-351c2d5bd2e740dd5ef93c36550b4b99b8b2c113.tar.gz
Read system remotes from /etc/xdg-app/remotes.d/*.conf
Diffstat (limited to 'common')
-rw-r--r--common/xdg-app-dir.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/xdg-app-dir.c b/common/xdg-app-dir.c
index a780926..01aad67 100644
--- a/common/xdg-app-dir.c
+++ b/common/xdg-app-dir.c
@@ -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))
{