[packagekit] Repo Controls

Tim Lauridsen tla at rasmil.dk
Tue Oct 23 06:18:27 PDT 2007


Richard Hughes wrote:
> On Mon, 2007-10-22 at 12:25 +0200, Tim Lauridsen wrote:
>   
>> get-repo-list & repo-enable is implemented for the yum backend.
>>     
>
> [hughsie at hughsie-laptop PackageKit]$ sudo backends/yum/helpers/repo-enable.py moomooshouldnotexist false
> Traceback (most recent call last):
>   File "backends/yum/helpers/repo-enable.py", line 18, in <module>
>     backend.repo_enable(repoid,state)
>   File "/home/hughsie/Code/PackageKit/backends/yum/helpers/yumBackend.py", line 746, in repo_enable
>     except Errors.RepoError,e:
> NameError: global name 'Errors' is not defined
>
> Could we please have an error ERROR_REPO_NOT_FOUND or something like
> that in this case - thanks.
>
> Richard.
>
>
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit
>   
Fixed the Traceback and make it send a
ERROR_REPO_NOT_FOUND = "repo-not-found" (added to 
python/packagekit/backend.py)

Tim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20071023/34ba64e8/attachment-0004.htm>


More information about the PackageKit mailing list