Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/mgorny:master commit in: sys-apps/portage/
Date: Thu, 28 Aug 2014 06:19:14
Message-Id: 1409052557.9907fe41a2bc6fc8dbe825d226bccf714dd17b24.mgorny@gentoo
1 commit: 9907fe41a2bc6fc8dbe825d226bccf714dd17b24
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 26 11:29:17 2014 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 26 11:29:17 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=9907fe41
7
8 sys-apps/portage: Use new distutils-r1 features to install docs without reinstalling whole Portage.
9
10 Package-Manager: portage-2.2.11_p165
11
12 ---
13 sys-apps/portage/portage-9999.ebuild | 6 ++++--
14 1 file changed, 4 insertions(+), 2 deletions(-)
15
16 diff --git a/sys-apps/portage/portage-9999.ebuild b/sys-apps/portage/portage-9999.ebuild
17 index b4e63e7..c949ece 100644
18 --- a/sys-apps/portage/portage-9999.ebuild
19 +++ b/sys-apps/portage/portage-9999.ebuild
20 @@ -186,8 +186,10 @@ python_install_all() {
21 use doc && targets+=( install_docbook )
22 use epydoc && targets+=( install_epydoc )
23
24 - # install docs + replace scripts with preferred impl
25 - python_install "${targets[@]}"
26 + # install docs
27 + if [[ ${targets[@]} ]]; then
28 + esetup.py "${targets[@]}"
29 + fi
30 }
31
32 pkg_preinst() {