<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Richard Hughes wrote:
<blockquote cite="mid:1193136958.28546.5.camel@hughsie-laptop"
type="cite">
<pre wrap="">On Mon, 2007-10-22 at 12:25 +0200, Tim Lauridsen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">get-repo-list & repo-enable is implemented for the yum backend.
</pre>
</blockquote>
<pre wrap=""><!---->
[hughsie@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
<a class="moz-txt-link-abbreviated" href="mailto:PackageKit@lists.freedesktop.org">PackageKit@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/packagekit">http://lists.freedesktop.org/mailman/listinfo/packagekit</a>
</pre>
</blockquote>
Fixed the Traceback and make it send a <br>
ERROR_REPO_NOT_FOUND = "repo-not-found" (added to
python/packagekit/backend.py)<br>
<br>
Tim<br>
<br>
</body>
</html>