[Yum-devel] Re: [yum-cvs] /yum-utils yum-utils.spec,1.33,1.34
Panu Matilainen
pmatilai at laiskiainen.org
Wed Feb 14 14:57:55 UTC 2007
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:
Stopping Yum
A plugin may stop Yum's execution at any point by raising the
yum.plugins.PluginYumExit exception. The argument of the exception will
be displayed to the user as Yum terminates.
Catching that will allow a nice error message to be shown instead of a
traceback.
- Panu -
More information about the Yum-devel
mailing list