From 7be715fce4e922e0b257ff8824f7d575c4d8e3e4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 24 Jun 2007 18:58:42 +0000 Subject: 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 --- bin/regenworld | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/regenworld') 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") -- cgit v1.2.3-1-g7c22