diff options
Diffstat (limited to 'subcmds/status.py')
-rw-r--r-- | subcmds/status.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/subcmds/status.py b/subcmds/status.py index 5b669547..0aa4200f 100644 --- a/subcmds/status.py +++ b/subcmds/status.py | |||
@@ -117,7 +117,7 @@ the following meanings: | |||
117 | outstring.append(''.join([status_header, item, '/'])) | 117 | outstring.append(''.join([status_header, item, '/'])) |
118 | 118 | ||
119 | def Execute(self, opt, args): | 119 | def Execute(self, opt, args): |
120 | all_projects = self.GetProjects(args) | 120 | all_projects = self.GetProjects(args, all_manifests=not opt.this_manifest_only) |
121 | 121 | ||
122 | def _ProcessResults(_pool, _output, results): | 122 | def _ProcessResults(_pool, _output, results): |
123 | ret = 0 | 123 | ret = 0 |
@@ -141,9 +141,10 @@ the following meanings: | |||
141 | if opt.orphans: | 141 | if opt.orphans: |
142 | proj_dirs = set() | 142 | proj_dirs = set() |
143 | proj_dirs_parents = set() | 143 | proj_dirs_parents = set() |
144 | for project in self.GetProjects(None, missing_ok=True): | 144 | for project in self.GetProjects(None, missing_ok=True, all_manifests=not opt.this_manifest_only): |
145 | proj_dirs.add(project.relpath) | 145 | relpath = project.RelPath(local=opt.this_manifest_only) |
146 | (head, _tail) = os.path.split(project.relpath) | 146 | proj_dirs.add(relpath) |
147 | (head, _tail) = os.path.split(relpath) | ||
147 | while head != "": | 148 | while head != "": |
148 | proj_dirs_parents.add(head) | 149 | proj_dirs_parents.add(head) |
149 | (head, _tail) = os.path.split(head) | 150 | (head, _tail) = os.path.split(head) |