Пример #1
0
gboolean
pk_backend_initialize_databases (PkBackend *self, GError **error)
{
	g_return_val_if_fail (self != NULL, FALSE);

	disabled = disabled_repos_new (error);
	if (disabled == NULL) {
		return FALSE;
	}

	if (!disabled_repos_configure (disabled, TRUE, error)) {
		return FALSE;
	}

	return TRUE;
}
Пример #2
0
gboolean
backend_initialize_databases (PkBackend *backend, GError **error)
{
	g_return_val_if_fail (pacman != NULL, FALSE);
	g_return_val_if_fail (backend != NULL, FALSE);

	disabled_repos = disabled_repos_new (error);
	if (disabled_repos == NULL) {
		return FALSE;
	}

	if (!disabled_repos_configure (disabled_repos, error)) {
		return FALSE;
	}

	return TRUE;
}