mirror of
https://git.codelinaro.org/clo/tools/repo.git
synced 2025-06-27 06:46:11 +08:00
sync: Keep the project.list file sorted
Its easier to locate an entry visually if the file is sorted. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@ -166,6 +166,7 @@ uncommitted changes are present' % project.relpath
|
|||||||
break
|
break
|
||||||
dir = os.path.dirname(dir)
|
dir = os.path.dirname(dir)
|
||||||
|
|
||||||
|
new_project_paths.sort()
|
||||||
fd = open(file_path, 'w')
|
fd = open(file_path, 'w')
|
||||||
try:
|
try:
|
||||||
fd.write('\n'.join(new_project_paths))
|
fd.write('\n'.join(new_project_paths))
|
||||||
|
Reference in New Issue
Block a user