[yum-cvs] yum-utils/plugins/downloadonly downloadonly.conf, NONE, 1.1 downloadonly.py, NONE, 1.1

Seth Vidal skvidal at linux.duke.edu
Sun May 7 00:45:53 UTC 2006


Update of /home/groups/yum/cvs/yum-utils/plugins/downloadonly
In directory login1.linux.duke.edu:/tmp/cvs-serv32200

Added Files:
	downloadonly.conf downloadonly.py 
Log Message:

added downloadonly plugin to yum-utils


--- NEW FILE downloadonly.conf ---
[main]
enabled=1

--- NEW FILE downloadonly.py ---
#!/usr/bin/python

# 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 Menno Smits

from yum.plugins import PluginYumExit, TYPE_INTERFACE

requires_api_version = '2.0'
plugin_type = (TYPE_INTERFACE,)

def config_hook(conduit):
   parser = conduit.getOptParser()
   parser.add_option('', '--downloadonly', dest='dlonly', action='store_true',
           default=False, help="don't update, just download")

def postdownload_hook(conduit):
   opts, commands = conduit.getCmdLine()
   if opts.dlonly:
       raise PluginYumExit('exiting because --downloadonly specified ')





More information about the Yum-cvs-commits mailing list