What this does is replace all the synaptic and gksudo code with a dbus call to packagekit. The old code was added in an Ubuntu patch, so I just regenerated that patch with the new code instead. I don't know if that is the correct way to do it. Only one file needs to be modified, gst-package.c. The new version of 80_gst-packages-common.patch is generated with different diff options so the diff is kind of confusing, sorry about that.
What this does is replace all the synaptic and gksudo code with a dbus call to packagekit. The old code was added in an Ubuntu patch, so I just regenerated that patch with the new code instead. I don't know if that is the correct way to do it. Only one file needs to be modified, gst-package.c. The new version of 80_gst- packages- common. patch is generated with different diff options so the diff is kind of confusing, sorry about that.
The packagekit source is taken almost verbatim from the C example here: http:// www.freedesktop .org/software/ PackageKit/ pk-faq. html#session- methods