[packagekit] WhatProvides
Klaus Kaempf
kkaempf at suse.de
Mon Mar 17 10:52:31 PDT 2008
* Richard Hughes <hughsient at gmail.com> [Mar 17. 2008 18:37]:
>
> Now, I think to be properly abstract, I envisage a method like:
>
> WhatProvides(PkProvidesEnum provide_type, const char *data)
>
> where PkProvidesEnum would be ALL, MODALIAS, CODEC, GENERAL or other
> things that we think up.
Whats the purpose of having an enum if its semantics could be encoded
in 'data' ?
> I guess we could standardize the format for MODALIAS and CODEC although
> i don't think that's particularly important as we don't enforce the
> names of packages either.
Correct. Leave this standardization to the package maintainers.
PackageKit would push this by requiring 'standardized' capabilities
like e.g. 'modalias(...)' through the WhatProvides API.
Klaus
---
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
More information about the PackageKit
mailing list