Mailinglist Archive: zypp-devel (56 mails)

< Previous Next >
[zypp-devel] How to get a packages' depends and requires from libzypp
  • From: "Boyd Timothy" <btimothy@xxxxxxxxx>
  • Date: Tue, 4 Dec 2007 16:11:06 -0700
  • Message-id: <d0151e9d0712041511o3bf83d5by5c32a33f02778951@xxxxxxxxxxxxxx>
I'm trying to implement:

1) GetDepends (http://www.packagekit.org/pk-reference.html#api-get-depends)
- GetDepends should return packages that this package depends on.
2) GetRequires (http://www.packagekit.org/pk-reference.html#api-get-requires)
- GetRequires should return packages that depend on this package.
This is useful to know, as if package_id is being removed, we can warn
the user what else would be removed.

I can't figure out what to call. I've got a
zypp::Resolvable::constPtr and I notice there's a ->deps(). I've
cycled through that, but end up getting a long list of both packages
and libraries.

Does anyone have some sample C++ code that I could look at to see how
I might implement these methods?

Thanks,

Boyd
--
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >