diff options
author | 2013-11-13 17:55:18 -0800 | |
---|---|---|
committer | 2013-11-14 12:49:09 +0100 | |
commit | e85c43aa6c5aba6d17b509065306c72fae42485e (patch) | |
tree | 916c0a70197700d714d55fa5febb61eec35f3d5a /modules | |
parent | Implement space function more efficiently. (diff) | |
download | eselect-e85c43aa6c5aba6d17b509065306c72fae42485e.tar.gz eselect-e85c43aa6c5aba6d17b509065306c72fae42485e.tar.bz2 eselect-e85c43aa6c5aba6d17b509065306c72fae42485e.zip |
Silence profile symlink warning when using --force, bug 491216.
When building packages in an alternate ROOT that doesn't need to be
perfectly configured as a stand-alone system it is reasonable for
PORTDIR to be shared with the host system and not inside of ROOT. Also
when using eselect in automated scripts (to take advantage of
repo_name:foo/profile/path parsing) it feels clunky to have to emit
"Please ignore the following warning" messages to avoid scaring people.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/profile.eselect | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/profile.eselect b/modules/profile.eselect index a91a45f..77533ea 100644 --- a/modules/profile.eselect +++ b/modules/profile.eselect @@ -122,6 +122,7 @@ set_symlink() { || die -q "Couldn't set new ${MAKE_PROFILE} symlink" # check if the resulting symlink is sane [[ $(canonicalise "${MAKE_PROFILE}") != "$(canonicalise "${EROOT}")"/* ]] \ + && [[ -z ${force} ]] \ && write_warning_msg "Strange path. Check ${MAKE_PROFILE} symlink" return 0 |