[yum-cvs] yum/yum Errors.py,1.8,1.9 repos.py,1.96,1.97

Seth Vidal skvidal at linux.duke.edu
Thu Aug 24 15:22:02 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv27932/yum

Modified Files:
	Errors.py repos.py 
Log Message:

added Chris Lumens patch for duplicate-repo detection error generation.


Index: Errors.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/Errors.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- Errors.py	28 May 2006 05:32:49 -0000	1.8
+++ Errors.py	24 Aug 2006 15:21:59 -0000	1.9
@@ -40,6 +40,11 @@
         YumBaseError.__init__(self)
         self.args = args
 
+class DuplicateRepoError(RepoError):
+    def __init__(self, args=None):
+        RepoError.__init__(self)
+        self.args = args
+
 class ConfigError(YumBaseError):
     def __init__(self, args=None):
         YumBaseError.__init__(self)

Index: repos.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/repos.py,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -r1.96 -r1.97
--- repos.py	1 Jul 2006 16:31:14 -0000	1.96
+++ repos.py	24 Aug 2006 15:21:59 -0000	1.97
@@ -45,7 +45,7 @@
 
     def add(self, repoobj):
         if self.repos.has_key(repoobj.id):
-            raise Errors.RepoError, 'Repository %s is listed more than once in the configuration' % (repoobj.id)
+            raise Errors.DuplicateRepoError, 'Repository %s is listed more than once in the configuration' % (repoobj.id)
         self.repos[repoobj.id] = repoobj
         
 




More information about the Yum-cvs-commits mailing list