From 80d2ceb22267b7dc61b107934ff5264b6439a785 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Fri, 26 Oct 2012 12:23:05 -0700 Subject: [PATCH] repo selfupdate: Fix _PostRepoUpgrade takes 2 arguments Change-Id: I1cf9e0674ea366ddce96c949e0bc085e3452b25a --- subcmds/sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subcmds/sync.py b/subcmds/sync.py index a7df7c89..7416f4c3 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -538,7 +538,7 @@ uncommitted changes are present' % project.relpath mp.PreSync() if opt.repo_upgraded: - _PostRepoUpgrade(self.manifest, opt) + _PostRepoUpgrade(self.manifest, quiet=opt.quiet) if not opt.local_only: mp.Sync_NetworkHalf(quiet=opt.quiet, @@ -612,10 +612,10 @@ uncommitted changes are present' % project.relpath if self.manifest.notice: print self.manifest.notice -def _PostRepoUpgrade(manifest, opt): +def _PostRepoUpgrade(manifest, quiet=False): wrapper = WrapperModule() if wrapper.NeedSetupGnuPG(): - wrapper.SetupGnuPG(opt.quiet) + wrapper.SetupGnuPG(quiet) for project in manifest.projects.values(): if project.Exists: project.PostRepoUpgrade()