summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-17 15:45:04 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-17 15:45:04 +0000
commitaa587a40703715ce36c910fb08cb45988430f4a7 (patch)
tree0b739074f5a7646c3b1e03bdb7a5f0e0a85233fe /morph
parent5893a490e953077ecc5b39a2eec0cb3e5e150ede (diff)
downloadmorph-aa587a40703715ce36c910fb08cb45988430f4a7.tar.gz
Add --no-git-update setting to morph
Diffstat (limited to 'morph')
-rwxr-xr-xmorph14
1 files changed, 11 insertions, 3 deletions
diff --git a/morph b/morph
index 5cbb40f6..720c3054 100755
--- a/morph
+++ b/morph
@@ -65,6 +65,11 @@ class Morph(cliapp.Application):
'do not cache repositories of submodules and '
'unpack them into the build directory')
+ self.settings.boolean(['no-git-update'],
+ 'do not update the cached git repositories '
+ 'during a build (user must have done that '
+ 'already using the update-gits subcommand)')
+
self.settings.string_list(['staging-filler'],
'unpack BLOB into staging area for '
'non-bootstrap builds (this will '
@@ -112,7 +117,8 @@ class Morph(cliapp.Application):
while len(args) >= 3:
tempdir = morphlib.tempdir.Tempdir(self.settings['tempdir'])
morph_loader = MorphologyLoader(self.settings)
- source_manager = morphlib.sourcemanager.SourceManager(self)
+ source_manager = morphlib.sourcemanager.SourceManager(self,
+ update=not self.settings['no-git-update'])
builder = morphlib.builder.Builder(tempdir, self, morph_loader,
source_manager)
@@ -201,7 +207,8 @@ class Morph(cliapp.Application):
'''Dumps the dependency tree of all input morphologies.'''
morph_loader = MorphologyLoader(self.settings)
- source_manager = morphlib.sourcemanager.SourceManager(self)
+ source_manager = morphlib.sourcemanager.SourceManager(self,
+ update=not self.settings['no-git-update'])
while len(args) >= 3:
# read the build tuple from the command line
@@ -352,7 +359,8 @@ class Morph(cliapp.Application):
tempdir = morphlib.tempdir.Tempdir(self.settings['tempdir'])
morph_loader = MorphologyLoader(self.settings)
- source_manager = morphlib.sourcemanager.SourceManager(self)
+ source_manager = morphlib.sourcemanager.SourceManager(self,
+ update=not self.settings['no-git-update'])
# create a build controller
controller = buildcontroller.BuildController(self, tempdir)