summaryrefslogtreecommitdiff
path: root/morphlib/cachekeycomputer_tests.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-17 13:35:06 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-17 13:35:30 +0100
commit75adcd50b5565b45e80688244521702bb6fa6c2a (patch)
tree752f59a2fab033d7ff4665f8b98d9ac15633230c /morphlib/cachekeycomputer_tests.py
parent9d00fd2ad6299cdfd6ac240b921ebaf48f698178 (diff)
downloadmorph-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/cachekeycomputer_tests.py')
-rw-r--r--morphlib/cachekeycomputer_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/cachekeycomputer_tests.py b/morphlib/cachekeycomputer_tests.py
index 923cc9f9..f9ffb387 100644
--- a/morphlib/cachekeycomputer_tests.py
+++ b/morphlib/cachekeycomputer_tests.py
@@ -81,7 +81,8 @@ class CacheKeyComputerTests(unittest.TestCase):
]
}''',
}.iteritems():
- source = morphlib.source.Source('repo', 'original/ref', 'sha',
+ repo = morphlib.cachedrepo.CachedRepo('repo', 'url', 'path')
+ source = morphlib.source.Source(repo, 'original/ref', 'sha',
morphlib.morph2.Morphology(text), name)
pool.add(source)
self.sources[name] = source