| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| | |
This allows a few more diagnostics of what went wrong when the error
is inside the baserock:morphs repository.
|
| |
| |
| |
| |
| | |
This is mostly useful for diagnosing Morph bugs. Currently empty strata
just cause confusing errors when building systems.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This removes the requirement that all strata must be in the same
repo as the system morphology.
Both the system "strata" field and the stratum "build-depends" field
are affected.
|
|/
|
|
| |
Rename "sources" field of stratum morphologies to "chunks".
|
| |
|
|\ |
|
| |
| |
| |
| |
| | |
This provides much better performance in cases where most of the
repos do not have a .morph included.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
| |
1) print message if no unused gits were found
2) avoid eating baserock:morphs repository every time
|
|
|
|
|
|
|
| |
This removes local repository clones that are not referenced by anything
in the baserock:morphs repository.
It would be useful for Morph to do this itself in the long term.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This removes all but the latest build of a chunk from the cache,
which can free up a significant amount of disk space for large
chunks.
Ideally Morph should handle cleaning up the artifact cache itself,
there are some ideas floating around including using git to store
the artifacts; either way, reference counting items in the cache
and only requiring the user to manually delete the final system
images when they are no longer required is probably the best way.
|
|
|
|
|
| |
This is required to bootstrap on Fedora, where debootstrap fails to
autodetect the architecture due to dpkg not being present.
|
|
|
|
|
|
|
|
| |
The squeeze version of coverage.py seems to have problems with methods
that consist of a single pass statement. This patch replaces those
statements with placeholder docstrings so that ./check passes on squeeze.
Reviewed-By: Daniel Silverstone (on irc)
|
|\ |
|
|/
|
|
|
|
|
| |
Sanitise the git repo aliases to use git.baserock.org instead of the
old roadtrain.codethink.co.uk hostname.
This will cause a re-fetch of gits, unless you fix up your cache first
|
|\
| |
| |
| | |
git://git.baserock.org/baserock/morph
|
| |
| |
| |
| |
| | |
The Disk image builder can work on non-x86 and as such we should
let it test anywhere.
|
| |
| |
| |
| |
| |
| | |
Since the vast majority of the SyslinuxDiskBuilder functionality is now
in morphlib.builder2.DiskImageBuilder, inherit from that and override
the bootloader related methods so that extlinux is correctly installed.
|
|/
|
|
|
|
|
| |
This adds a disk system image kind which does everything the syslinux-disk
one does, but without syslinux. It deliberately carries stubbed bootloader
operations so that we can later make syslinux-disk inherit from this one
and override it.
|
|
|
|
|
|
|
|
| |
This is needed to support Colin Walters's suggested build API
(http://people.gnome.org/~walters/docs/build-api.txt). In fact,
it's all we need to support it, I think.
Reviewed-By: Richard Maw (on irc)
|
|\
| |
| |
| | |
Reviewed-By: Richard Maw (on irc)
|
|/
|
|
|
|
| |
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.
|
|\ |
|
|/
|
|
|
|
|
|
|
| |
This is needed in older versions of btrfs, otherwise snapshots can
contain empty files, since the data has not been written to disk.
This behaviour was discovered in a debian squeeze i386 VM, and has not
been seen elsewhere, but this is an environment that must be supported
for bootstrapping.
|
|\ |
|
| | |
|
| |
| |
| |
| | |
This overrides the mbr search path to a file that doesn't exist.
|
| |
| |
| |
| |
| | |
This is primarily so that this can be made testable, but it will also
allow for the mbr to be installed in a non-standard path.
|
|/
|
|
| |
This is not used elsewhere, and probably never will.
|
|\
| |
| |
| | |
git://roadtrain.codethink.co.uk/baserock/morph
|
| |
| |
| |
| |
| | |
The proper way to run setup.py is with "python setup.py". That allows
you to choose the right Python version to use.
|
|/
|
|
|
| |
We don't want to have any *.py files as executable scripts, so hashbangs
never make sense.
|
|\
| |
| |
| |
| |
| | |
Conflicts:
morphlib/morphologyfactory.py
morphlib/morphologyfactory_tests.py
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |/ |
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| | |
It's such a small amount of code, it's possibly not worth it,
but now all commands are in plugins.
|
| |
| |
| |
| |
| |
| |
| |
| | |
morphlib.app should be for application bringup and providing
command line options used by the library code.
Any external plugins that refer to morphlib.app.BuildCommand
will need fixing.
|
| |
| |
| |
| |
| | |
As simple as it is to dump json files, it is convenient to use the
same function, so the format can be kept the same.
|
| |
| |
| |
| |
| | |
Some miscellaneous cleanup of functions was done, so new apis like
savefile and status are used.
|
| |
| |
| |
| |
| |
| |
| | |
resolve_reponame is now duplicated since other functions use it.
cmd_edit uses everything, so they can be removed from morphlib.app
when it is moved to a plugin.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This test checks if the same morphology json is generated during
petrification.
Because commits include the author and date, the sha1 sum will
differ if a different user commits at a different time.
This can be overridden by the environment variables
GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL,DATE}.
The date chosen was just something recent at the time the work was
done, since a too-early timestamp is rejected by git as invalid.
|
| |
| |
| |
| |
| | |
This does not require any other function movements, due to its
simple implementation.
|
| |
| |
| |
| |
| | |
deduce_system_branch is now duplicated because other commands
not yet moved require it.
|
| |
| |
| |
| |
| | |
clone_to_directory is currently duplicated because other commands
not yet moved require it.
|
| |
| |
| |
| |
| |
| |
| |
| | |
If verbose is specified, then more output is expected, so print
that it was successful.
This was actually added so that the self parameter of init was
used for something.
|