hif: Use hif_source_commit() for new versions of the library
This commit is contained in:
parent
317252b355
commit
ef4549db2b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user