diff options
Diffstat (limited to 'gitc_utils.py')
-rw-r--r-- | gitc_utils.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gitc_utils.py b/gitc_utils.py index 8ff7699b..6354702f 100644 --- a/gitc_utils.py +++ b/gitc_utils.py | |||
@@ -157,8 +157,10 @@ def save_manifest(manifest, client_dir=None): | |||
157 | client_dir: Client directory to save the manifest in. | 157 | client_dir: Client directory to save the manifest in. |
158 | """ | 158 | """ |
159 | if not client_dir: | 159 | if not client_dir: |
160 | client_dir = manifest.gitc_client_dir | 160 | manifest_file = manifest.manifestFile |
161 | with open(os.path.join(client_dir, '.manifest'), 'w') as f: | 161 | else: |
162 | manifest_file = os.path.join(client_dir, '.manifest') | ||
163 | with open(manifest_file, 'w') as f: | ||
162 | manifest.Save(f, groups=_manifest_groups(manifest)) | 164 | manifest.Save(f, groups=_manifest_groups(manifest)) |
163 | # TODO(sbasi/jorg): Come up with a solution to remove the sleep below. | 165 | # TODO(sbasi/jorg): Come up with a solution to remove the sleep below. |
164 | # Give the GITC filesystem time to register the manifest changes. | 166 | # Give the GITC filesystem time to register the manifest changes. |