summaryrefslogtreecommitdiffstats
path: root/bin/regenworld
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/regenworld
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/regenworld')
-rwxr-xr-xbin/regenworld3
1 files changed, 2 insertions, 1 deletions
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")