Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 456552 Details for
Bug 602986
Sort portage /var/lib/portage/config file before writing to disc.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Sort dictionary before writing to disc
portage-sort-dictionary-before-write.patch (text/plain), 570 bytes, created by
pitcha
on 2016-12-18 08:50:23 UTC
(
hide
)
Description:
Sort dictionary before writing to disc
Filename:
MIME Type:
Creator:
pitcha
Created:
2016-12-18 08:50:23 UTC
Size:
570 bytes
patch
obsolete
>diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py >--- a/pym/portage/util/__init__.py >+++ b/pym/portage/util/__init__.py >@@ -579,10 +579,10 @@ def writedict(mydict, myfilename, writekey=True): > the key and assumes all values are strings, not lists.""" > lines = [] > if not writekey: >- for v in mydict.values(): >+ for v in sorted(mydict.values()): > lines.append(v + "\n") > else: >- for k, v in mydict.items(): >+ for k, v in sorted(mydict.items()): > lines.append("%s %s\n" % (k, " ".join(v))) > write_atomic(myfilename, "".join(lines)) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 602986
: 456552