diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/emaint | 3 | ||||
-rwxr-xr-x | bin/regenworld | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bin/emaint b/bin/emaint index 1c179df10..d13827ba5 100755 --- a/bin/emaint +++ b/bin/emaint @@ -69,7 +69,8 @@ class WorldHandler(object): self._check_world(onProgress) errors = [] try: - portage.write_atomic(self.world_file, "\n".join(self.okay)) + portage.write_atomic(self.world_file, + "\n".join(sorted(self.okay)) + "\n") except portage.exception.PortageException: errors.append(self.world_file + " could not be opened for writing") return errors diff --git a/bin/regenworld b/bin/regenworld index ebac4a591..601653406 100755 --- a/bin/regenworld +++ b/bin/regenworld @@ -92,4 +92,5 @@ for mykey in biglist: print "add to world:",myfavkey worldlist.append(myfavkey) -portage.write_atomic(os.path.join("/", portage.WORLD_FILE), "\n".join(worldlist)) +portage.write_atomic(os.path.join("/", portage.WORLD_FILE), + "\n".join(sorted(worldlist)) + "\n") |