summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emaint3
-rwxr-xr-xbin/regenworld3
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")