diff options
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/common/profile.bashrc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc index eede29b5..e067653f 100644 --- a/profiles/common/profile.bashrc +++ b/profiles/common/profile.bashrc @@ -274,8 +274,13 @@ function __install_own_file () { "${_ed}/${REPLY}" \ || die - chmod --reference="${_FACTORY_DIRECTORY}/${REPLY}" "${_ed}/${REPLY}" \ - || die + if [[ -e "${_ed}/usr/share/gentoo-factory/${CATEGORY}/${PF}/${REPLY}" ]] ; then + chmod --reference="${_ed}/usr/share/gentoo-factory/${CATEGORY}/${PF}/${REPLY}" "${_ed}/${REPLY}" \ + || die + else + chmod --reference="${_FACTORY_DIRECTORY}/${REPLY}" "${_ed}/${REPLY}" \ + || die + fi elif [[ -L "${_FACTORY_DIRECTORY}/${REPLY}" ]] ; then cp -P "${_FACTORY_DIRECTORY}/${REPLY}" \ "${_ed}/${REPLY}" \ |