From aa4e15dfd62ebd8d4d4c5f6c376cb76462a61dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Thu, 27 Jun 2013 14:40:06 +0200 Subject: [PATCH] Remove bugged uuid selection in repository manage Traceback with old repository return None as uuid --- installsystems/repository/manager.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/installsystems/repository/manager.py b/installsystems/repository/manager.py index dc2fcb9..7023b48 100644 --- a/installsystems/repository/manager.py +++ b/installsystems/repository/manager.py @@ -93,15 +93,6 @@ class RepositoryManager(object): for repo in self.repos: if repo.config.name == key: return repo - # if not found, match uuid - # we need at least 4 chars to avoid ambiguous uuid matching - if len(key) >= 4: - for repo in [r for r in self.repos if not r.config.offline]: - if fnmatch.fnmatch(repo.uuid, "%s*" % key): - return repo - else: - raise ISWarning("Ambiguous argument: we need at least 4 chars " - "to match an uuid") raise IndexError(u"No repository named: %s" % key) else: raise TypeError(u"Invalid type %s for %s" % (type(key), key)) -- GitLab