diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-08 05:05:35 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-06-08 05:05:35 +0000 |
commit | 65f1b2309a0e030936a0ae1819c62b06989b5354 (patch) | |
tree | b6f8982c68c0d9c462966897ca040905f2ea408d /app-portage | |
parent | Version bump. (diff) | |
download | gentoo-2-65f1b2309a0e030936a0ae1819c62b06989b5354.tar.gz gentoo-2-65f1b2309a0e030936a0ae1819c62b06989b5354.tar.bz2 gentoo-2-65f1b2309a0e030936a0ae1819c62b06989b5354.zip |
Manually preserve +x bits on postsync.d files #301721 by Klaus Birkelund Jensen.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/portage-utils/ChangeLog | 7 | ||||
-rw-r--r-- | app-portage/portage-utils/portage-utils-0.3.1.ebuild | 19 |
2 files changed, 21 insertions, 5 deletions
diff --git a/app-portage/portage-utils/ChangeLog b/app-portage/portage-utils/ChangeLog index b433be202628..301a0e15579f 100644 --- a/app-portage/portage-utils/ChangeLog +++ b/app-portage/portage-utils/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-portage/portage-utils # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v 1.107 2010/01/24 21:19:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/ChangeLog,v 1.108 2010/06/08 05:05:35 vapier Exp $ + + 08 Jun 2010; Mike Frysinger <vapier@gentoo.org> + portage-utils-0.3.1.ebuild: + Manually preserve +x bits on postsync.d files #301721 by Klaus Birkelund + Jensen. 24 Jan 2010; Mike Frysinger <vapier@gentoo.org> portage-utils-0.3.1.ebuild: diff --git a/app-portage/portage-utils/portage-utils-0.3.1.ebuild b/app-portage/portage-utils/portage-utils-0.3.1.ebuild index e472c65c26a0..bb9986566156 100644 --- a/app-portage/portage-utils/portage-utils-0.3.1.ebuild +++ b/app-portage/portage-utils/portage-utils-0.3.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/portage-utils-0.3.1.ebuild,v 1.2 2010/01/24 21:19:28 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/portage-utils/portage-utils-0.3.1.ebuild,v 1.3 2010/06/08 05:05:35 vapier Exp $ inherit flag-o-matic toolchain-funcs @@ -35,9 +35,20 @@ src_install() { doins "${FILESDIR}"/q-reinitialize || die } +pkg_preinst() { + # preserve +x bit on postsync files #301721 + local x + pushd "${D}" >/dev/null + for x in etc/portage/postsync.d/* ; do + [[ -x ${ROOT}/${x} ]] && chmod +x "${x}" + done +} + pkg_postinst() { elog "/etc/portage/postsync.d/q-reinitialize has been installed for convenience" - elog "If you wish for it to be automatically run at the end of every --sync simply chmod +x /etc/portage/postsync.d/q-reinitialize" - elog "Normally this should only take a few seconds to run but file systems such as ext3 can take a lot longer." - elog "If ever you find this to be an inconvenience simply chmod -x /etc/portage/postsync.d/q-reinitialize" + elog "If you wish for it to be automatically run at the end of every --sync:" + elog " # chmod +x /etc/portage/postsync.d/q-reinitialize" + elog "Normally this should only take a few seconds to run but file systems" + elog "such as ext3 can take a lot longer. To disable, simply do:" + elog " # chmod -x /etc/portage/postsync.d/q-reinitialize" } |