[packagekit] PackageKit and source packages?
Richard Hughes
hughsient at gmail.com
Mon May 23 01:39:11 PDT 2011
On 21 May 2011 17:18, Benjamin M. Schwartz <bmschwar at fas.harvard.edu> wrote:
> 1. Get the source code by asking PackageKit to install the source package,
> and then asking PackageKit for the list of files owned by this package.
> For RPM this applies literally. For Gentoo, the backend would have to
> emulate this somehow.
Right. In PackageKit parlance, this would happen:
-> Resolve(sane-backends)
<- Package(available, sane-backends;0.3.0;i396;fedora, Scanner software)
<- Finished()
-> GetSource(sane-backends;0.3.0;i396;fedora)
<- Package(available, sane;0.3.0;i396;fedora-source, Scanner software)
<- Finished()
-> DownloadPackage(sane;0.3.0;i396;fedora-source, "/tmp")
<- Package(downloading, sane;0.3.0;i396;fedora-source, Scanner software)
<- Files(sane;0.3.0;i396;fedora-source, "/tmp/sane-0.3.0.i396.srpm")
<- Finished()
or, if we just want the files list of the source package:
-> GetFiles(sane;0.3.0;i396;fedora-source, "/tmp")
<- Files(sane;0.3.0;i396;fedora-source, "/usr/share/sane/README")
<- Finished()
I think realistically this is the level PackageKit should work at,
rather doing things like decompressing archives and git trees, and
that kind of thing.
If we added the GetSource() call illustrated above, would that solve
your use case?
Thanks,
Richard.
More information about the PackageKit
mailing list