sysroot: Move ostree_sysroot_origin_new_from_refspec here

Rather than having it live in admin.  This is useful for other
consumers like the test suite.
This commit is contained in:
Colin Walters committed 2013-10-03 18:34:24 -04:00
1 parent ae2234b183
commit cb251ae5ca
5 files changed
+20 -11

No files matched your search

+15
View File
@@ -1095,3 +1095,18 @@ ostree_sysroot_get_merge_deployment (OstreeSysroot *self,
return NULL;
}
/**
* ostree_sysroot_origin_new_from_refspec:
* @refspec: A refspec
*
* Returns: (transfer full): A new config file which sets @refspec as an origin
*/
GKeyFile *
ostree_sysroot_origin_new_from_refspec (OstreeSysroot *sysroot,
const char *refspec)
{
GKeyFile *ret = g_key_file_new ();
g_key_file_set_string (ret, "origin", "refspec", refspec);
return ret;
}