From 4dd5d69f9902ae00534d430dc1351ee9ec165bb7 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 24 Jun 2007 19:06:10 +0000 Subject: sort the world file before writing it and ensure that it's terminated by a newline (bug #180706, trunk r6976 and r6999) svn path=/main/branches/2.1.2/; revision=7000 --- 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