summaryrefslogtreecommitdiffstats
path: root/bin/emaint
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-24 18:58:42 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-24 18:58:42 +0000
commit7be715fce4e922e0b257ff8824f7d575c4d8e3e4 (patch)
treef1bdf66eac265c9cdb6bc9810b9938113ba4e2c6 /bin/emaint
parent8428f4e437a1b24e143e371b74bfd89c6c1f369a (diff)
downloadportage-7be715fce4e922e0b257ff8824f7d575c4d8e3e4.tar.gz
portage-7be715fce4e922e0b257ff8824f7d575c4d8e3e4.tar.bz2
portage-7be715fce4e922e0b257ff8824f7d575c4d8e3e4.zip
For bug #180706, add sorting and a trailing newline in the rest of the cases where the world file is written.
svn path=/main/trunk/; revision=6999
Diffstat (limited to 'bin/emaint')
-rwxr-xr-xbin/emaint3
1 files changed, 2 insertions, 1 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