repo: Check for OSTREE_REPO in ostree_repo_new_default()

Convenience feature to avoid having to pass --repo options repeatedly.

Before falling back to the default system repository path, check for a
repository path defined by the OSTREE_REPO environment variable.
This commit is contained in:
Matthew Barnes committed 2015-02-19 20:44:34 -05:00
1 parent 7c267d6089
commit 5aa0d51d7a
2 files changed
+15 -5

No files matched your search

+4 -2
View File
@@ -70,8 +70,10 @@
<para>
There is a system repository located at
<filename>/ostree/repo</filename>. If no repository
is specified, the <command>ostree</command> as well
as many API calls will use it by default.
is specified -- either by a command-line option or the
<envar>OSTREE_REPO</envar> environment variable --
the <command>ostree</command> as well as many API
calls will use it by default.
</para>
</refsect1>