[packagekit] GetMimeTypes API addition?

Anders F Björklund afb at algonet.se
Wed Oct 1 02:47:57 PDT 2008


Richard Hughes wrote:

> Attached is a patch to add a GetMimeTypes API call. This allows us to
> give the user a nice message when they try to install a .deb file on a
> system that only supports .rpm.
>
...
> This patch is not yet in git. Feedback? Comments?

Just like with the groups, this one could need communicating
with the (python) backend or risk showing "maybe supported" ?

return
     "application/x-rpm;"
     "application/x-deb;"
     "application/x-gzip;"
     "application/x-bzip2;"
     "application/x-lzma;"
     "application/x-arch-pkg";

--anders




More information about the PackageKit mailing list