[packagekit] ServicePack: The magic file

Richard Hughes hughsient at gmail.com
Thu Mar 27 10:54:10 PDT 2008


On Thu, 2008-03-27 at 13:22 -0400, David Zeuthen wrote:
> On Thu, 2008-03-27 at 17:11 +0000, Richard Hughes wrote:
> > On Thu, 2008-03-27 at 16:56 +0000, Richard Hughes wrote:
> > > Following this email will be specific thread for discussion. So no code
> > > yet -- but I'm working on it.
> > 
> > At the moment in my local tree, packagekit watches for new volumes and
> > checks that they contain a magic filename in the root directory,
> > servicepack.ini - if so, adds them as a local repo using the backend.
> 
> I'd actually do this in another way. Just define an x-content/* type and
> Nautilus will automagically detect this once this gets into
> shared-mime-info. 

Yes, that's the plan also, see
http://lists.freedesktop.org/archives/packagekit/2008-March/002434.html

How do i define an x-content type?

>  - Proper prompts
> http://people.freedesktop.org/~david/nautilus-utopia-4.png

All looks cool, but still relies of a client/server split - we can't do
the locking and repo adding session wide, it has to be per-system. In
the case I outlines in my initial mail, it's done both per-session _and_
per system to be able to rock hard.

> (For Fedora in the short term (e.g. Rawhide when f10 opens) we can
> manually patch Nautilus to recognize x-content/packagekit-servicepack.
> So can other distros. But long term we're going to get this into
> shared-mime-info so you can do this without any Nautilus patching.)

Excellent.

> > * Is servicepack.ini a good name?
> 
> No. I think ini is a Microsoft-ism. You probably also want to prefix it
> with PackageKit to properly name space it. Suggest to use
> 
>  packagekit-service-pack.conf

packagekit.conf sounds like a plan - as it'll be used for more stuff
than just service pack media.

Richard.





More information about the PackageKit mailing list