From aa587a40703715ce36c910fb08cb45988430f4a7 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 17 Feb 2012 15:45:04 +0000 Subject: Add --no-git-update setting to morph --- morph | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'morph') 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) -- cgit v1.2.1