[yum-cvs] yum-utils/plugins/protectbase protectbase.py,1.2,1.3
Menno Smits
mjs at linux.duke.edu
Fri Jun 16 14:33:08 UTC 2006
Update of /home/groups/yum/cvs/yum-utils/plugins/protectbase
In directory login1.linux.duke.edu:/tmp/cvs-serv2375
Modified Files:
protectbase.py
Log Message:
Added GPL header, author contact note and docstrings.
Index: protectbase.py
===================================================================
RCS file: /home/groups/yum/cvs/yum-utils/plugins/protectbase/protectbase.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- protectbase.py 16 Jun 2006 14:21:24 -0000 1.2
+++ protectbase.py 16 Jun 2006 14:33:05 -0000 1.3
@@ -1,3 +1,19 @@
+# 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 <menno at freshfoo.com>
+
'''
This plugin allows certain repositories to be protected. Packages in the
protected repositories can't be overridden by packages in non-protected
@@ -17,10 +33,15 @@
plugin_type = (TYPE_CORE,)
def config_hook(conduit):
+ '''Add options to Yum's configuration
+ '''
config.YumConf.protect = config.BoolOption(False)
config.RepoConf.protect = config.Inherit(config.YumConf.protect)
def exclude_hook(conduit):
+ '''Exclude packages from non-protected repositories that may upgrade
+ packages from protected repositories.
+ '''
cnt = 0
allrepos = conduit.getRepos().listEnabled()
More information about the Yum-cvs-commits
mailing list