summaryrefslogtreecommitdiff
path: root/morphlib/morphologyfactory.py
Commit message (Collapse)AuthorAgeFilesLines
* Make rootfs-tarball build only the tarball also on ARMLars Wirzenius2013-02-201-6/+1
|
* Require morphology name to match filenameSam Thursfield2013-02-081-0/+5
| | | | | | | Allowing differences causes only confusion. Whether or not the 'name' field should surive at all is up for debate: it's very useful when seeing the contents of the morphology out of context (e.g. in documentation or pastebins), but is that worth the extra effort?
* Make yaml be an optional dependencyLars Wirzenius2013-01-291-2/+1
| | | | | This can go away when we have made a release with yaml in it, and its staging filler.
* Parse as YAML if not valid JSONRichard Maw2013-01-221-2/+4
| | | | | Tests are currently broken, one because invalid JSON can be valid YAML, and coverage is incomplete.
* Increase verbosity regarding the remote artifact cache.Daniel Silverstone2012-09-281-1/+10
| | | | | | | This simply increases the verbosity of the operations which are done against the remote artifact cache. It should result in some progress messages if you build with --verbose set and you're mostly getting stuff from your remote artifact cache (Trove).
* Rename arm to armv7 and be consistentRichard Maw2012-09-201-1/+1
| | | | | armv5 and armv7 are different enough to be a problem, so specify which particular arm sub-architecture we currently support.
* Display expected filename in "Failed to determine build system" errorSam Thursfield2012-08-301-3/+3
| | | | | This allows a few more diagnostics of what went wrong when the error is inside the baserock:morphs repository.
* Strata contain "chunks", not "sources"Sam Thursfield2012-08-291-1/+1
| | | | Rename "sources" field of stratum morphologies to "chunks".
* Always ls-tree before trying to cat-fileSam Thursfield2012-08-241-35/+25
| | | | | This provides much better performance in cases where most of the repos do not have a .morph included.
* Use git ls-tree to autodetect build systemSam Thursfield2012-08-241-15/+4
| | | | | | | The cost of one git ls-tree call is roughly the same as one git cat-file call. Therefore, when autodetecting the build system, it is much faster to list the tree once and then search for the required files than to call git cat-file for every possible one.
* Fix deprecation message when showing error messageLars Wirzenius2012-08-071-1/+1
| | | | | | It turns out that BaseException.message is deprecated, and str(e) is a better way of achieving that. This makes the unit tests not spew out a deprecation warning.
* Merge branch 'master' of roadtrain.codethink.co.uk:baserock/morphLars Wirzenius2012-08-011-1/+5
|\ | | | | | | | | | | Conflicts: morphlib/morphologyfactory.py morphlib/morphologyfactory_tests.py
| * Merge branch 'samthursfield/clearer-morphology-parse-errors' of ↵Richard Maw2012-08-011-2/+6
| |\ | | | | | | | | | | | | | | | | | | git://roadtrain.codethink.co.uk/baserock/morph Merged with a tweak to the layout, since the code style's display width is 79 characters, rather than 80.
| | * Raise clearer error on morphology parse errorsSam Thursfield2012-07-311-2/+5
| |/
* | python scripts: pep8ize codebaseRichard Maw2012-08-011-17/+17
|/ | | | | | | | | 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.
* Require system-kind on system morphologiesLars Wirzenius2012-07-191-0/+4
|
* Set Morphology.needs_artifact_metadata_cachedLars Wirzenius2012-07-191-0/+3
|
* Have MorphologyFactor set Morphology.needs_staging_areaLars Wirzenius2012-07-191-0/+5
|
* Have MorphologyFactory set Morphology.builds_artifactsLars Wirzenius2012-07-181-14/+45
| | | | | | | | | | | | | This way we can have one place in the code where we determine what artifacts get built from a specific morphology, rather than spreading the information around the code base. From now on, everything is supposed to use the builds_artifacts attribute to get the list of artifacts. ArtifactResolver has been changed to do that. Some of the tests are now a bit messier, and should really be changed to create Morphology objects using MorphologyFactory, but that's a change for another day.
* Remove pointless hashbangLars Wirzenius2012-07-181-2/+0
|
* Add missing empty lines, for clarityLars Wirzenius2012-07-181-0/+5
|
* Add check for undefined arch in system morphologyRichard Maw2012-07-111-0/+5
|
* Move stratum verification to morphologyfactoryRichard Maw2012-07-111-1/+12
| | | | | | | | | | I think morphologies should be verified closer to where they are created, not when they are traversed, since this verification would be useful in more code paths. This is in morphologyfactory, rather than Morphology itself, since it may be useful to be able to create morphologies without checking, such as in unit tests.
* morphologyfactory: infer build system without listRichard Maw2012-04-201-3/+14
| | | | | | | | | | Detecting the build system is managed by it asking if any files exist detecting if the file exists is done with a callback function. This callback can use cat-file. If list_files existed this could be more efficient as it would not require the files to be read from the remote server and it only needs to be one round-trip
* morphologyfactory: work without RemoteRepoCacheRichard Maw2012-04-201-3/+18
| | | | | There are cases where we would not need a remote cache, so it should be able to operate without one.
* add morphology factoryRichard Maw2012-04-191-0/+63