[packagekit] [RFE] Enable packagekit to download updates at leisure and install them during the next reboot

Richard Hughes hughsient at gmail.com
Tue Jun 22 02:39:18 PDT 2010


On 17 June 2010 07:48, Huzaifa Sidhpurwala
<sidhpurwala.huzaifa at gmail.com> wrote:
>> 3. Do we want to install files at boot time also? If so we need some
>> sort of manifest.

Okay, so it looks like we are looking at a script file format for the
following use cases:

* At system boot
* At system shutdown
* At GDM (post X, pre-login)

And the actions we require are basically install and update.

I propose a simple action language based on desktop files for maximum
flexibility:

Any program can dump files in /var/lib/PackageKit/manifests

red-hat-update-at-boot-time.pk-manifest
[PackageKit Manifest]
AtBoot=repo-enable rhel-updates;update
Fail=ignore
Success=ignore

suse-install-sekret-vpn-conf.pk-manifest
[PackageKit Manifest]
AtBoot=install suse-vpn-configs
AtShutdown=remove suse-vpn-configs
Fail=warn
Success=ignore

firefox-is-crap.pk-manifest
[PackageKit Manifest]
AtShutdown=update xulrunner; update firefox
Fail=ignore
Success=rm

So the .pk-manifest file is removed if both update xulrunner and
update firefox succeeds. Notice I'm using the package names only, I'm
not sure we need full package-id's here, and it certainly makes things
simpler.

> Thanks a lot for looking into this and let me know if you need any help in
> writing/patching the code too.

I think we need to discuss the use cases a little more before we write
a ton of code. I actually don't think the code would take a full hour
to write, but the specification might take a few days.

Richard.



More information about the PackageKit mailing list