Lines 47-56
Link Here
|
47 |
# Variable for config protected files (used by protect.py) |
47 |
# Variable for config protected files (used by protect.py) |
48 |
config_protect = portage.settings['CONFIG_PROTECT'] |
48 |
config_protect = portage.settings['CONFIG_PROTECT'] |
49 |
|
49 |
|
|
|
50 |
# Try to derive the correct libdir location by first examining the portage |
51 |
# variable ABI then using it to determine the appropriate variable to read. For |
52 |
# example, if ABI == 'amd64' then read LIBDIR_amd64. This routine should work on |
53 |
# all arches as it sets '/usr/lib' as a fallback. See bugs #125032 and #125156. |
50 |
if 'ABI' in portage.settings.keys(): |
54 |
if 'ABI' in portage.settings.keys(): |
51 |
config_abi = portage.settings['ABI'] |
55 |
config_abi = portage.settings['ABI'] |
|
|
56 |
if 'LIBDIR_' + config_abi in portage.settings.keys(): |
57 |
config_libdir = '/usr/' + portage.settings['LIBDIR_' + config_abi] |
58 |
else: |
59 |
# This shouldn't happen but we want to know if it ever does |
60 |
OUT.die('Failed to determine libdir from portage.settings[\'LIBDIR_' + config_abi + '\']\n') |
52 |
else: |
61 |
else: |
53 |
config_abi = '/usr/lib' |
62 |
config_libdir = '/usr/lib' |
54 |
|
63 |
|
55 |
protect_prefix = '._cfg' |
64 |
protect_prefix = '._cfg' |
56 |
update_command = 'etc-update' |
65 |
update_command = 'etc-update' |