Permalink
Browse files

FL-228 yet another symlink magic by Arfrever

  • Loading branch information...
1 parent 6549474 commit e02ba56d45926f027df94282f7d1bbad223b46bc @angryvincent angryvincent committed Nov 18, 2012
Showing with 9 additions and 7 deletions.
  1. +9 −7 sys-apps/portage/portage-2.3.5-r3.ebuild
@@ -337,13 +337,15 @@ pkg_postinst() {
fi
# make.conf magick. We rather prefer to have make.conf in one place and set the symlink to
# have compatibility
- if [[ -e ${EROOT}etc/make.conf && ! -L ${EROOT}etc/make.conf ]]; then
- if [[ -e ${EROOT}etc/portage/make.conf ]]; then
- mv "${EROOT}etc/make.conf" "${EROOT}etc/make.conf.backup"
- ewarn "Redundant '${EROOT}etc/make.conf' has been renamed to '${EROOT}etc/make.conf.backup'."
- else
- mv "${EROOT}etc/make.conf" "${EROOT}etc/portage/make.conf"
- fi
+ if [[ ! -L ${EROOT}etc/make.conf ]]; then
+ if [[ -e ${EROOT}etc/make.conf ]]
+ if [[ -e ${EROOT}etc/portage/make.conf ]]; then
+ mv "${EROOT}etc/make.conf" "${EROOT}etc/make.conf.backup"
+ ewarn "Redundant '${EROOT}etc/make.conf' has been renamed to '${EROOT}etc/make.conf.backup'."
+ else
+ mv "${EROOT}etc/make.conf" "${EROOT}etc/portage/make.conf"
+ fi
+ fi
ln -s portage/make.conf "${EROOT}etc/make.conf"
fi
}

0 comments on commit e02ba56

Please sign in to comment.