[packagekit] Things that need fixing

Richard Hughes hughsient at gmail.com
Fri Feb 29 07:37:13 PST 2008


On Fri, 2008-02-29 at 09:54 -0500, Robin Norwood wrote:
> Well, is ErrorCode intended to be for fatal errors?  If not, we can
> just simply throw an error code that says: 4 of 138 updates failed to
> install due to dependency issues.  <List of packages and dep error>.

If you throw ErrorCode you have to call Finish() really soon. For this
case you want to choose Message()

> > > Or, we could just spooge together the package definitions with
> > > yet-another-separator.
> > 
> > In the yum2 backend i make perfect sense to use arrays, but what
> > about the helper script backends link yum, how do they handle
> > multiple packages ?
> 
> I think for them, yet-another-separator is probably the only way.  We
> just need to pick one that isn't allowed in a package name by any of
> the major packaging systems for package names (or versions)

Can't we just use a space and then we can just pass then as argv
arguments.

> Is that really that bad, though?  It seems better to me to feel the pain
> now, and have a cleaner API. 

I'm up for a clean API.

Richard.





More information about the PackageKit mailing list