[packagekit] Distribution Upgrades
Richard Hughes
hughsient at gmail.com
Mon Apr 21 11:42:50 PDT 2008
On Sat, 2008-04-19 at 22:11 +0530, Rahul Sundaram wrote:
> It would be great if gpk-update-icon can notify the user when a new
> release of a distribution is available and initiate a distribution
> upgrade. One of the new features in Fedora (that is currently available
> for Fedora 7, 8 and rawhide) is preupgrade.
Yes.
> Atleast in the Fedora instance, we just need to hookup the update applet
> with preupgrade and you are good to go. IIRC, Ubuntu has a similar
> feature too. Maybe we could abstract this?
There's a RH bug open here:
https://bugzilla.redhat.com/show_bug.cgi?id=442958
I think this is very suitable to be abstracted.
First throws at a method:
GetDistroUpgrades()
::DistroUpgrade(type,distro_id,summary)
So, if we call GetDistroUpgrades() on Fedora 7, we get:
::DistroUpgrade(DISTRO_TYPE_STABLE,"fedora8", "Fedora Core 8")
::DistroUpgrade(DISTRO_TYPE_PRE_RELEASE,"fedora9rc1", "Fedora 9 RC1")
::DistroUpgrade(DISTRO_TYPE_UNSTABLE,"rawhide", "Fedora Rawhide")
These can be shown in a custom widget.
I'm not yet sure how to "do" the upgrade, maybe we have to proxy this to
the backend, or maybe we launch the process as the session user.
Other ideas welcome.
Richard.
More information about the PackageKit
mailing list