From 6db6268dfd76dfb36bd7bd756fe78ba8a1abcd5b Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Mon, 26 Feb 2018 18:54:54 -0800 Subject: [PATCH] lib/repo-finder-mount: Fix path to flatpak repo OstreeRepoFinderMount checks mounts for a few well-known directories such as "ostree/repo" and ".ostree/repo" to try to find remotes. One of the hard-coded directories is "var/lib/flatpak" but that's the flatpak directory, not the ostree repo used by flatpak, which is at "var/lib/flatpak/repo". So this commit changes the path so the repo can be found. For recent versions of Endless, flatpak uses /ostree/repo as its repository, so this commit won't make a difference there. But it may help on other operating systems. Closes: #1471 Approved by: cgwalters --- src/libostree/ostree-repo-finder-mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-repo-finder-mount.c b/src/libostree/ostree-repo-finder-mount.c index a7919fca..cdb958cd 100644 --- a/src/libostree/ostree-repo-finder-mount.c +++ b/src/libostree/ostree-repo-finder-mount.c @@ -439,7 +439,7 @@ G_GNUC_END_IGNORE_DEPRECATIONS { ".ostree/repo", "ostree/repo", - "var/lib/flatpak", + "var/lib/flatpak/repo", }; for (i = 0; i < G_N_ELEMENTS (well_known_repos); i++)