On Wed, 14 Feb 2007, Jeremy Katz wrote:
On Wed, 2007-02-14 at 16:57 +0200, Panu Matilainen wrote:
On Wed, 14 Feb 2007, Jeremy Katz wrote:
On Wed, 2007-02-14 at 15:49 +0200, Panu Matilainen wrote:
On Wed, 14 Feb 2007, Tim Lauridsen wrote:
Update of /home/groups/yum/cvs//yum-utils
In directory login1.linux.duke.edu:/tmp/cvs-serv12173
Modified Files:
yum-utils.spec
Log Message:
added versionlock.list to versionlock plugin to avoid at lot of bugzilla reports
where people have installed all plugins and then yum,pirut etc. are failing
because the versionlock.list file dont exist.
Mm.. please revert this. The plugin is disabled by default nowadays (yes I
know it caused a bunch of bugzilla entries back then :) so this doesn't
help anything. I *want* the versionlock plugin in enabled state to cause
full stop until properly configured by administor. If somebody wants
version locking, they're unlikely to want "all updates allowed" policy by
default, so having a default just doesn't make any sense.
It still causes a flood of reports. On the order of one every week or
two. If having a default versionlock.list is taboo, then the error case
really needs to be handled with something other than a traceback.
Because traceback ==> bug to many many people.[1]
Sure.. but why aren't Pirut & friends catching the PluginYumExit
exception? :) From the yum PLUGINS documentation:
It's not caught nicely by yum or any of the various yum-utils either.
yum itself does catch them AFAICT, dunno about "nicely" in cli-context.
Realistically, you _can't_ do nice handling of it unless you wrap every
call into the API with a try: except PluginYumExit. Which is
_insanity_. There has to be a saner way to catch and deal with it
that's not obfuscating everybody else's code.
Otherwise, the sad fact of the matter will be that API users won't do it
and we'll keep getting tracebacks.
It's not *that* bad - there are something like 5-6 API calls where one
needs to worry about it. Me thinks just moving it to yum.Errors and
inheriting YumBaseError instead of "plain" exception might help a bit, now
it's buried in yum.plugins so people aren't necessarily even aware of it.
Not that I'd object if somebody figures a nicer way to do this, I'm not
particularly fond of the current method either.
- Panu -
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel