Lines 666-673
Link Here
|
666 |
newld=open(root+"etc/ld.so.conf","w") |
666 |
newld=open(root+"etc/ld.so.conf","w") |
667 |
newld.write("# ld.so.conf autogenerated by env-update; make all changes to\n") |
667 |
newld.write("# ld.so.conf autogenerated by env-update; make all changes to\n") |
668 |
newld.write("# contents of /etc/env.d directory\n") |
668 |
newld.write("# contents of /etc/env.d directory\n") |
669 |
for x in specials["LDPATH"]: |
669 |
# python's 'for x in _some_array_' is like gawk's, in the sence that it |
670 |
newld.write(x+"\n") |
670 |
# returns all the elements of the array, but sorted alphabetically, which |
|
|
671 |
# is a no-no for ls.so.conf (bug #44028), thus we have to handle it |
672 |
# somewhat differently ... |
673 |
for x in range(0, len(specials["LDPATH"])): |
674 |
newld.write(specials["LDPATH"][x]+"\n") |
671 |
newld.close() |
675 |
newld.close() |
672 |
ld_cache_update=True |
676 |
ld_cache_update=True |
673 |
|
677 |
|