lib/remote: Add arguments to internal OstreeRemote constructor
Add a name argument to the internal OstreeRemote constructor, since this member (and several derived from it) is non-nullable, and hence must always be set at construction time. This changes the only call sites of the constructor to use the new API, which is internal. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #875 Approved by: cgwalters
This commit is contained in:
1 parent
2910b88081
commit
ed7905d000
3 files changed
+11
-10
No files matched your search
@@ -882,10 +882,7 @@ impl_repo_remote_add (OstreeRepo *self,
|
||||
name, remote->file ? gs_file_get_path_cached (remote->file) : "(in config)");
|
||||
}
|
||||
|
||||
remote = ostree_remote_new ();
|
||||
remote->name = g_strdup (name);
|
||||
remote->group = g_strdup_printf ("remote \"%s\"", name);
|
||||
remote->keyring = g_strdup_printf ("%s.trustedkeys.gpg", name);
|
||||
remote = ostree_remote_new (name);
|
||||
|
||||
/* The OstreeRepo maintains its own internal system root path,
|
||||
* so we need to not only check if a "sysroot" argument was given
|
||||
|
||||
Reference in new issue
Block a user