summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'profiles')
-rw-r--r--profiles/common/profile.bashrc32
1 files changed, 12 insertions, 20 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc
index 01693368..5e2a4be4 100644
--- a/profiles/common/profile.bashrc
+++ b/profiles/common/profile.bashrc
@@ -3,10 +3,6 @@ function __drop-nls-man-pages () {
return 0
fi
- if [[ ! ${ED} ]] ; then
- local ED="${D}"
- fi
-
if [[ ! -d "${ED}/usr/share/man" ]] ; then
return 0
fi
@@ -23,10 +19,6 @@ function __drop-nls-man-pages () {
}
function __drop-nls-locales () {
- if [[ ! ${ED} ]] ; then
- local ED="${D}"
- fi
-
if [[ ! -d "${ED}/usr/share/locale" ]] ; then
return 0
fi
@@ -46,14 +38,6 @@ function __drop-nls-locales () {
}
function __drop-empty-dir () {
- if [[ ! ${ED} ]] ; then
- local ED="${D}"
- fi
-
- if [[ ! -d "${ED}" ]] ; then
- return 0
- fi
-
local i
while (( i++ < 64 )) &&
@@ -74,10 +58,6 @@ function __drop-empty-dir () {
}
function __install_own_file () {
- if [[ ! ${ED} ]] ; then
- local ED="${D}"
- fi
-
local _PROFILE_PATH="$(portageq get_repo_path / as29 2> /dev/null)"
if [[ $? != 0 || ! ${_PROFILE_PATH} ]] ; then
@@ -118,10 +98,22 @@ function __install_own_file () {
}
function post_src_install () {
+ if [[ ! ${ED} ]] ; then
+ local ED="${D}"
+ fi
+
__install_own_file
}
function pre_pkg_preinst () {
+ if [[ ! ${ED} ]] ; then
+ local ED="${D}"
+ fi
+
+ if [[ ! -d "${ED}" ]] ; then
+ return 0
+ fi
+
__drop-nls-man-pages
__drop-nls-locales
__drop-empty-dir