diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-24 19:06:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-24 19:06:10 +0000 |
commit | 4dd5d69f9902ae00534d430dc1351ee9ec165bb7 (patch) | |
tree | bd6fb670a71868434bb0ca1d2cf0f26276bab269 /bin/regenworld | |
parent | 058a5fc1b8c757baf2981b0d21191950792a56f6 (diff) | |
download | portage-4dd5d69f9902ae00534d430dc1351ee9ec165bb7.tar.gz portage-4dd5d69f9902ae00534d430dc1351ee9ec165bb7.tar.bz2 portage-4dd5d69f9902ae00534d430dc1351ee9ec165bb7.zip |
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
Diffstat (limited to 'bin/regenworld')
-rwxr-xr-x | bin/regenworld | 3 |
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") |