hif: Use hif_source_commit() for new versions of the library

This commit is contained in:
Richard Hughes 2014-09-03 09:56:07 +01:00
parent 317252b355
commit ef4549db2b

View File

@ -1166,6 +1166,16 @@ pk_backend_repo_set_data_thread (PkBackendJob *job,
error->message);
goto out;
}
#if HIF_CHECK_VERSION(0,1,4)
ret = hif_source_commit (src, &error);
if (!ret) {
pk_backend_job_error_code (job,
error->code,
"failed to write repo file: %s",
error->message);
goto out;
}
#endif
/* nothing found */
pk_backend_job_set_percentage (job, 100);