[entropy.client.services.ugc] when retrieving repository metadata, also look through excluded ones

This commit is contained in:
Fabio Erculiani
2010-01-06 11:08:37 +01:00
parent bbeb3cd71b
commit c92fe7de13
@@ -43,6 +43,9 @@ class Client:
def connect_to_service(self, repository, timeout = None):
avail_data = self.Entropy.SystemSettings['repositories']['available']
# also try excluded repos
if repository not in avail_data:
avail_data = self.Entropy.SystemSettings['repositories']['excluded']
if repository not in avail_data:
raise RepositoryError("RepositoryError: %s" % (
_('repository is not available'),))