diff options
author | Shawn O. Pearce <sop@google.com> | 2012-10-26 12:23:05 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2012-10-26 12:24:57 -0700 |
commit | 80d2ceb22267b7dc61b107934ff5264b6439a785 (patch) | |
tree | 8d5c31dc12bf71d3d7f707341c413b3c0801a344 /subcmds/sync.py | |
parent | 55e4d464a7f8cf366290ba2d3c8bdd8297d71d32 (diff) | |
download | git-repo-80d2ceb22267b7dc61b107934ff5264b6439a785.tar.gz |
repo selfupdate: Fix _PostRepoUpgrade takes 2 arguments
Change-Id: I1cf9e0674ea366ddce96c949e0bc085e3452b25a
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 6 |
1 files 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 | |||
538 | mp.PreSync() | 538 | mp.PreSync() |
539 | 539 | ||
540 | if opt.repo_upgraded: | 540 | if opt.repo_upgraded: |
541 | _PostRepoUpgrade(self.manifest, opt) | 541 | _PostRepoUpgrade(self.manifest, quiet=opt.quiet) |
542 | 542 | ||
543 | if not opt.local_only: | 543 | if not opt.local_only: |
544 | mp.Sync_NetworkHalf(quiet=opt.quiet, | 544 | mp.Sync_NetworkHalf(quiet=opt.quiet, |
@@ -612,10 +612,10 @@ uncommitted changes are present' % project.relpath | |||
612 | if self.manifest.notice: | 612 | if self.manifest.notice: |
613 | print self.manifest.notice | 613 | print self.manifest.notice |
614 | 614 | ||
615 | def _PostRepoUpgrade(manifest, opt): | 615 | def _PostRepoUpgrade(manifest, quiet=False): |
616 | wrapper = WrapperModule() | 616 | wrapper = WrapperModule() |
617 | if wrapper.NeedSetupGnuPG(): | 617 | if wrapper.NeedSetupGnuPG(): |
618 | wrapper.SetupGnuPG(opt.quiet) | 618 | wrapper.SetupGnuPG(quiet) |
619 | for project in manifest.projects.values(): | 619 | for project in manifest.projects.values(): |
620 | if project.Exists: | 620 | if project.Exists: |
621 | project.PostRepoUpgrade() | 621 | project.PostRepoUpgrade() |