Chromium Code Reviews| Index: build/scan_sources.py |
| diff --git a/build/scan_sources.py b/build/scan_sources.py |
| index 83f3f20db83192b2c346c2a6a8a296b6a7c0eddd..3bf2e604358d2ce84a82d01b216423c757dc229b 100755 |
| --- a/build/scan_sources.py |
| +++ b/build/scan_sources.py |
| @@ -258,7 +258,7 @@ class WorkQueue(object): |
| if added_dir: |
| self.resolver.RemoveOneDirectory(scan_dir) |
| scan_name = self.PopIfAvail() |
| - return sorted(self.added_set) |
| + return self.added_set |
| def DoMain(argv): |
| @@ -288,7 +288,12 @@ def DoMain(argv): |
| for filename in files: |
| workQ.PushIfNew(filename) |
| - sorted_list = workQ.Run() |
| + sources_set = workQ.Run() |
| + |
| + # If any of the original files requested aren't found, add them anyway. |
|
Nick Bray (chromium)
2014/12/12 00:24:17
Why? Comment.
teravest
2014/12/12 15:03:00
Done.
|
| + sources_set = sources_set.union(set(files)) |
| + |
| + sorted_list = sorted(sources_set) |
| return '\n'.join(sorted_list) + '\n' |