[packagekit] Problems with GPK and Yum Plugins
rotru at br.ibm.com
rotru at br.ibm.com
Wed Oct 6 08:23:17 PDT 2010
Hi, sorry for the delay
> The GUI tools don't actually run yum or the plugin code, that's done
> by the packagekitd daemon.
> What version PackageKit and yum are you using? Could you upload your
> yum plugin somewhere public also please.
I am using F13:
yum-3.2.28-4.fc13.noarch
gnome-packagekit-2.30.3-1.fc13.x86_64
PackageKit-gtk-module-0.6.6-2.fc13.i686
PackageKit-gtk-module-0.6.6-2.fc13.x86_64
PackageKit-0.6.6-2.fc13.x86_64
PackageKit-device-rebind-0.6.6-2.fc13.x86_64
PackageKit-glib-0.6.6-2.fc13.x86_64
PackageKit-command-not-found-0.6.6-2.fc13.x86_64
PackageKit-yum-plugin-0.6.6-2.fc13.x86_64
PackageKit-yum-0.6.6-2.fc13.x86_64
PackageKit-gstreamer-plugin-0.6.6-2.fc13.x86_64
I uploaded an example of the codes here:
* triggers INIT hook error: http://pastebin.com/Ht9JR8DX
* triggers PRE or POST error: http://pastebin.com/NuhPbzFh
You can use them and run the gpk-application or the gpk-update-viewer to
check the errors.
> It depends on how your plugin works. PackageKit does some things a
> little bit different to yum.
> No. PackageKit is doing different things with the data, and is
> exporting it in a different way to using the bare yum api.
> What's your use case for adding and removing repos like you're
suggesting?
We have to hide some repositories and make them available on the fly when
specific users run yum or any front-end application to it .
We get the repos from a webservice and add them dynamically.
Regards
Rodrigo Trujillo
From:
Richard Hughes <hughsient at gmail.com>
To:
PackageKit users and developers list <packagekit at lists.freedesktop.org>
Date:
09/21/2010 08:16 AM
Subject:
Re: [packagekit] Problems with GPK and Yum Plugins
Sent by:
packagekit-bounces+rotru=br.ibm.com at lists.freedesktop.org
On 21 September 2010 12:06, <rotru at br.ibm.com> wrote:
> I have an Yum Plugin that adds some repositories dynamically to yum
every
> time it runs.
> In the command line Yum works perfectly, and the same result was seen in
> gnome-packagekit apps.
> But recently gpk-application and gpk-update-viewer are not working
anymore
> with the plugin.
The GUI tools don't actually run yum or the plugin code, that's done
by the packagekitd daemon.
> 1- I used to add the repositories in the "init hook", but, in latest GPK
> versions for F13 I started to get this error:
>
> Traceback (most recent call last):
> File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 3270, in
> __init__
> self.repos.confirm_func = self._repo_gpg_confirm
> File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 814, in
> <lambda>
> repos = property(fget=lambda self: self._getRepos(),
> File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 542, in
> _getRepos
> prerepoconf = self.prerepoconf
> AttributeError: 'PackageKitYumBase' object has no attribute
'prerepoconf'
What version PackageKit and yum are you using? Could you upload your
yum plugin somewhere public also please.
> 2- Using prereposetup or postreposetup the error above disappears and
> gpk-update-viewer, in a first step, finds the repos and the updates
> available
> from them. BUT, when I try to update, it returns an error saying the
> repository was not found !!!
It depends on how your plugin works. PackageKit does some things a
little bit different to yum.
> - What is GPK doing with the yum-plugins ? Should not it have the same
> behavior that YUM in command line ?
No. PackageKit is doing different things with the data, and is
exporting it in a different way to using the bare yum api.
> - How can I add dynamic repositories to Yum and use them with GPK ?
> - Is this a potential bug, as I get the behavior desired in the command
> line?
What's your use case for adding and removing repos like you're suggesting?
Richard.
_______________________________________________
PackageKit mailing list
PackageKit at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/packagekit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20101006/2a5acd48/attachment-0003.htm>
More information about the PackageKit
mailing list