[jhbuild] Warn about duplicated repositories in modulesets



commit c412cff8fe0e824639ec3db411663c37952b9ab5
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat Jun 19 16:49:14 2010 +0200

    Warn about duplicated repositories in modulesets

 jhbuild/moduleset.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/moduleset.py b/jhbuild/moduleset.py
index 3c50405..fd05ed0 100644
--- a/jhbuild/moduleset.py
+++ b/jhbuild/moduleset.py
@@ -346,6 +346,8 @@ def _parse_module_set(config, uri):
             for attr in repo_class.init_xml_attrs:
                 if node.hasAttribute(attr):
                     kws[attr.replace('-', '_')] = node.getAttribute(attr)
+            if name in repositories:
+                logging.warning(_('Duplicate repository:') + ' '+ name)
             repositories[name] = repo_class(config, name, **kws)
             repositories[name].moduleset_uri = uri
             mirrors = {}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]