summaryrefslogtreecommitdiff
path: root/morphlib/util.py
Commit message (Collapse)AuthorAgeFilesLines
* Tidy up create_cachedir()Sam Thursfield2013-02-061-13/+10
|
* Move OrderedDict and json loading to morphlib.utilRichard Maw2013-01-221-1/+11
| | | | | | | | This way everyone who needs json or an OrderedDict doesn't have to worry about it. Currently morph2 is the only one that needs this complex behaviour, other users of the json module don't need object_pairs_hook.
* Add a sparse-aware (for writing) copyfileobj.Daniel Silverstone2012-10-091-0/+39
|
* Use tarballs instead of bundlesDaniel Silverstone2012-09-251-2/+2
| | | | | | | This makes a non-backward-compatible change to morph which switches it to using tarballs instead of bundles when initialising cached git repositories. This is faster because it doesn't require index-pack --fix-thin operations on the machine running morph.
* Add support for Trove hosted content to morph configuration.Daniel Silverstone2012-09-121-0/+45
| | | | | | | | | | | Trove has a fixed structure for repositories and prefixes. By taking advantage of this, we can simplify the repo-alias configuration in morph somewhat and thus make it easier for others to add their own aliases and prefixes later, without worrying that they'll miss out on default ones created by the Baserock team. We override process_args in the application class to achieve this because cliapp's setup() hook is not quite right for our purposes.
* Move utility functions for creating cachesRichard Maw2012-08-011-0/+56
| | | | | | | | | | | Code for creating caches is repeated through the codebase because there wasn't a useful function for creating caches. Now the functions in BuildCommand have been moved into morphlib.util, where they will be more usefully reachable. Stubs have been left in BuildCommand so they can be overridden by subclasses of BuildCommand and not break external plugins.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-13/+10
| | | | | | | | | 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.
* Bump copyright years, get rid of long lines and unused imports.Jannis Pohlmann2012-01-231-1/+1
|
* Fix coverageLars Wirzenius2011-11-151-1/+1
|
* Fix reference to cpu_count in actual codeLars Wirzenius2011-11-151-1/+1
|
* Handle non-functional multiprocessingLars Wirzenius2011-11-151-1/+4
| | | | This can happen when we run morph in a chroot without /dev/urandom
* Use make_concurrency to set MAKEFLAGS when buidling.Lars Wirzenius2011-10-191-0/+1
|
* Add method for deciding how many concurrent make jobs to run.Lars Wirzenius2011-10-191-0/+15
|
* Move Builder.arch into util.arch.Lars Wirzenius2011-10-171-0/+9
| | | | This makes it easy to add a test case.
* Handle unicode in indented error messages.Lars Wirzenius2011-10-081-2/+7
|
* Fix GPL version sentence grammar.Lars Wirzenius2011-10-061-1/+1
|
* Initial import.Lars Wirzenius2011-09-291-0/+32