summaryrefslogtreecommitdiff
path: root/morphlib
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-12-19 11:08:23 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-12-19 11:08:23 +0000
commitfb7eb661b2b02bf049d24fa4a232f303b5058b1b (patch)
tree10192377f6ad8721f47e071b1c52d6151021e00c /morphlib
parent8e319db777ccb11ae565293e5c86919192fb459b (diff)
downloadmorph-fb7eb661b2b02bf049d24fa4a232f303b5058b1b.tar.gz
Rename builder2 module to builder
Diffstat (limited to 'morphlib')
-rw-r--r--morphlib/__init__.py2
-rw-r--r--morphlib/buildcommand.py4
-rw-r--r--morphlib/builder.py (renamed from morphlib/builder2.py)0
-rw-r--r--morphlib/builder_tests.py (renamed from morphlib/builder2_tests.py)8
-rw-r--r--morphlib/plugins/cross-bootstrap_plugin.py4
5 files changed, 9 insertions, 9 deletions
diff --git a/morphlib/__init__.py b/morphlib/__init__.py
index 8319430c..0d445304 100644
--- a/morphlib/__init__.py
+++ b/morphlib/__init__.py
@@ -56,7 +56,7 @@ import buildbranch
import buildcommand
import buildenvironment
import buildsystem
-import builder2
+import builder
import cachedrepo
import cachekeycomputer
import extensions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index a658fc55..68fce693 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -518,7 +518,7 @@ class BuildCommand(object):
staging_area.install_artifact(handle)
if target_source.build_mode == 'staging':
- morphlib.builder2.ldconfig(self.app.runcmd, staging_area.dirname)
+ morphlib.builder.ldconfig(self.app.runcmd, staging_area.dirname)
def build_and_cache(self, staging_area, source, setup_mounts):
'''Build a source and put its artifacts into the local cache.'''
@@ -526,7 +526,7 @@ class BuildCommand(object):
self.app.status(msg='Starting actual build: %(name)s '
'%(sha1)s',
name=source.name, sha1=source.sha1[:7])
- builder = morphlib.builder2.Builder(
+ builder = morphlib.builder.Builder(
self.app, staging_area, self.lac, self.rac, self.lrc,
self.app.settings['max-jobs'], setup_mounts)
return builder.build_and_cache(source)
diff --git a/morphlib/builder2.py b/morphlib/builder.py
index 9e158ea1..9e158ea1 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder.py
diff --git a/morphlib/builder2_tests.py b/morphlib/builder_tests.py
index 4fd0807a..2087c942 100644
--- a/morphlib/builder2_tests.py
+++ b/morphlib/builder_tests.py
@@ -154,7 +154,7 @@ class BuilderBaseTests(unittest.TestCase):
self.repo_cache = None
self.build_env = FakeBuildEnv()
self.max_jobs = 1
- self.builder = morphlib.builder2.BuilderBase(self.app,
+ self.builder = morphlib.builder.BuilderBase(self.app,
self.staging_area,
self.artifact_cache,
None,
@@ -193,7 +193,7 @@ class BuilderBaseTests(unittest.TestCase):
fh = rac.put(a)
fh.write(a.name)
fh.close()
- morphlib.builder2.download_depends(afacts, lac, rac)
+ morphlib.builder.download_depends(afacts, lac, rac)
self.assertTrue(all(lac.has(a) for a in afacts))
def test_downloads_depends_metadata(self):
@@ -207,7 +207,7 @@ class BuilderBaseTests(unittest.TestCase):
fh = rac.put_artifact_metadata(a, 'meta')
fh.write('metadata')
fh.close()
- morphlib.builder2.download_depends(afacts, lac, rac, ('meta',))
+ morphlib.builder.download_depends(afacts, lac, rac, ('meta',))
self.assertTrue(all(lac.has(a) for a in afacts))
self.assertTrue(all(lac.has_artifact_metadata(a, 'meta')
for a in afacts))
@@ -217,5 +217,5 @@ class ChunkBuilderTests(unittest.TestCase):
def setUp(self):
self.app = FakeApp()
- self.build = morphlib.builder2.ChunkBuilder(self.app, None, None,
+ self.build = morphlib.builder.ChunkBuilder(self.app, None, None,
None, None, None, 1, False)
diff --git a/morphlib/plugins/cross-bootstrap_plugin.py b/morphlib/plugins/cross-bootstrap_plugin.py
index 7b53a4a5..2b5c8911 100644
--- a/morphlib/plugins/cross-bootstrap_plugin.py
+++ b/morphlib/plugins/cross-bootstrap_plugin.py
@@ -46,7 +46,7 @@ def escape_source_name(source):
# Most of this is ripped from RootfsTarballBuilder, and should be reconciled
# with it.
-class BootstrapSystemBuilder(morphlib.builder2.BuilderBase):
+class BootstrapSystemBuilder(morphlib.builder.BuilderBase):
'''Build a bootstrap system tarball
The bootstrap system image contains a minimal cross-compiled toolchain
@@ -104,7 +104,7 @@ class BootstrapSystemBuilder(morphlib.builder2.BuilderBase):
source_dir = os.path.join(path, 'src', escaped_source)
if not os.path.exists(source_dir):
os.makedirs(source_dir)
- morphlib.builder2.extract_sources(
+ morphlib.builder.extract_sources(
self.app, self.repo_cache, s.repo, s.sha1, source_dir)
name = s.name