[packagekit] pisi MIME Types

Aşkın Yollu askin at askin.ws
Mon Aug 10 06:18:26 PDT 2009


On Mon, Aug 10, 2009 at 2:39 PM, Richard Hughes<hughsient at gmail.com> wrote:
> 2009/8/10 Aşkın Yollu <askin at askin.ws>:
>> if i use "application/x-pisi;application/x-deb", files has .deb
>> extension can install, but pisi can't.
>> if i use "application/x-pisi", both o them can't..
>
> How odd. Could you please pull from git master again, and rebuild. The
> error message should then have the content type as detected by
> packagekitd.

we solve the problem, packagekit expect file as a zip file.
when we move package-manager.xml file to "/usr/share/mime/packages"
from /usr/kde/4/share/mime/packages/", it works

$XDG_DATA_DIRS = /usr/kde/4/share:/usr/share

$ cat /usr/share/mime/packages/package-manager.xml
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-pisi">
    <comment>PiSi package</comment>
    <glob pattern="*.pisi"/>
  </mime-type>
</mime-info>

kelebek at kelebek-pardus ~ $ gvfs-info twitux-0.69-4-3.pisi | grep content
  standard::content-type: application/x-pisi
  standard::fast-content-type: application/x-pisi
kelebek at kelebek-pardus ~ $ file twitux-0.69-4-3.pisi
  twitux-0.69-4-3.pisi: Zip archive data, at least v2.0 to extract

-- 
Aşkın Yollu



More information about the PackageKit mailing list