Yuan Yijun (bbbush) wrote,
Yuan Yijun
bbbush

zz:rawhide slowness

Matthew Miller <mattdm@mattdm.org>
致 Development

On Mon, Mar 12, 2007 at 12:19:00PM -0400, seth vidal wrote:
> Apparently it is not acceptable for things to be not-working or
> less-good in rawhide. Apparently, we have to go from one working state
> to another perfectly working state w/o passing through any situation in
> which it is not as functional.
> We told everyone up front that what is going on right now is slower and
> larger while we work on getting it right and yet that doesn't seem to
> stop the useless bitching and moaning w/o any offers of help at all.


I have a solution!

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# by Matthew Miller <mattdm@mattdm.org>

'''
expectations-management.py
This plugin makes Yum work properly on Rawhide.
'''

from yum.plugins import TYPE_INTERACTIVE

requires_api_version = '2.4'
plugin_type = (TYPE_INTERACTIVE)

def init_hook(conduit):

 f=open('/etc/fedora-release')
 if f.read().find("Rawhide") > 0:
   conduit.info(1, '********************************************************')
   conduit.info(1, 'You are using Fedora Rawhide. Now I will EAT YOUR BRANE.')
   conduit.info(1, '********************************************************')
 f.close()


Tags: fedora, 转载
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments