[packagekit] Errors in the GetDepends call

Robin Norwood rnorwood at redhat.com
Sat Mar 1 19:32:34 PST 2008


Hi,

The yum backend currently does the following when it can't resolve a
dependency:

self.ErrorCode(ERROR_DEP_RESOLUTION_FAILED,"the (%s) requirement could
not be resolved" % prco_tuple_to_string(req))
continue

This causes multiple ErrorCode's to be sent, which is forbidden.

Would it be better to change this to:

o Sending Messages with the requirements that could not be resolved.
o Calling Finished() and exiting after the first error.
o Saving up the errors, and calling ErrorCode with all the failed deps,
then calling Finished() and exiting.

?

-RN

-- 
Robin Norwood
Red Hat, Inc.

"The Sage does nothing, yet nothing remains undone."
-Lao Tzu, Te Tao Ching



More information about the PackageKit mailing list