From 75adcd50b5565b45e80688244521702bb6fa6c2a Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Tue, 17 Apr 2012 13:35:06 +0100 Subject: Add original_name member to CachedRepo. Use it for SourcePool lookups. This is done to avoid a nasty mix of SourcePool lookups using CachedRepo objects (e.g. for strata within a system) versus lookups using repo names (e.g for sources within a stratum). --- morphlib/cachedrepo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'morphlib/cachedrepo.py') diff --git a/morphlib/cachedrepo.py b/morphlib/cachedrepo.py index 37c53c7b..5dc7e55d 100644 --- a/morphlib/cachedrepo.py +++ b/morphlib/cachedrepo.py @@ -74,9 +74,10 @@ class CachedRepo(object): ''' - def __init__(self, url, path): - '''Creates a new CachedRepo for a given repo URL and local path.''' + def __init__(self, original_name, url, path): + '''Creates a new CachedRepo for a repo name, URL and local path.''' + self.original_name = original_name self.url = url self.path = path self.ex = morphlib.execute.Execute(self.path, logging.debug) -- cgit v1.2.1