summaryrefslogtreecommitdiff
path: root/morphlib/sourcepool_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* FIXUP: Fix up unit tests from change allowing multiple sourcesRichard Maw2014-09-191-9/+3
| | | | | This is logically part of the previous patch, but has been split out to ease reviewing.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-4/+3
| | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* Add a repo_name to Source, use that instead of repo in most places.Jannis Pohlmann2012-04-181-4/+3
| | | | | | | | | | This is because we will need to integrate a RemoteRepoCache and we don't always want to create a CachedRepo object (in fact, we only want that for the sources of artifacts we actually need to build). So we'll use either the local or the remote repo cache to resolve refs and morphology texts and then later, when actually caching a repo, we'll set the source.repo member to a CachedRepo object that we can then use to unpack the sources.
* Add original_name member to CachedRepo. Use it for SourcePool lookups.Jannis Pohlmann2012-04-171-4/+9
| | | | | | 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).
* Add original_ref member to Source. Default to None for build-depends.Jannis Pohlmann2012-04-111-2/+3
| | | | | | | | | We will almost always want to look up sources based on the data we find in morphologies (e.g. chunk sources found in a stratum or strata found in a system). For that we need to remember the original_ref in addition to the resolved SHA1 and look up sources using this original ref. The original ref is therefore also used as part of the hash key in SourcePool now.
* Add SourcePool class and make Source store its morphology filenameLars Wirzenius2012-04-101-0/+65