diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-17 13:35:06 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-17 13:35:30 +0100 |
commit | 75adcd50b5565b45e80688244521702bb6fa6c2a (patch) | |
tree | 752f59a2fab033d7ff4665f8b98d9ac15633230c /morphlib/cachedrepo.py | |
parent | 9d00fd2ad6299cdfd6ac240b921ebaf48f698178 (diff) | |
download | morph-75adcd50b5565b45e80688244521702bb6fa6c2a.tar.gz |
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).
Diffstat (limited to 'morphlib/cachedrepo.py')
-rw-r--r-- | morphlib/cachedrepo.py | 5 |
1 files changed, 3 insertions, 2 deletions
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) |